Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for event SCHEDULED_EVENT in platform_workers_service #197

Open
oukjweather opened this issue Jan 28, 2025 · 2 comments
Open
Assignees
Labels
enhancement Automatically generated release notes

Comments

@oukjweather
Copy link

Is your feature request related to a problem? Please describe.
I have created a worker in the console for scheduled events that I would like to have managed via terraform. When I go to import it I get back:

│ Error: Invalid Attribute Value Match
│ 
│   with platform_workers_service.test,
│   on workers.tf line 7, in resource "platform_workers_service" "test":
│    7:   action = "SCHEDULED_EVENT"

However, if I check run a plan with one of the required actions that is permitted, I can see that the api is reporting back SCHEDULED_EVENT, so it is valid on the api side, its simply the provider that doesn't have support.

  ~ resource "platform_workers_service" "test" {
      ~ action          = "SCHEDULED_EVENT" -> "BEFORE_DOWNLOAD"

The worker needs to run as a schedule event, so this precludes being able to manage it with terraform til this is addressed. Additionally, it appears the resource needs to also add support for being able to set the schedule that the worker would run on.

Describe the solution you'd like
Add provider support for SCHEDULED_EVENT along with being able to set the schedule for the worker via terraform.

Describe alternatives you've considered

Additional context

@oukjweather
Copy link
Author

Steps to replicate:

  • setup a terraform workspace authenticated with your jfrog instance
  • create a scheduled worker inside jfrog
  • import worker into terraform taking care not to change its settings

@alexhung
Copy link
Member

@oukjweather Thank you for the suggestion. I've added this to our plan.

@alexhung alexhung added the enhancement Automatically generated release notes label Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Automatically generated release notes
Projects
None yet
Development

No branches or pull requests

3 participants