Skip to content

Add support for event SCHEDULED_EVENT in platform_workers_service #197

@oukjweather

Description

@oukjweather

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

Metadata

Metadata

Assignees

Labels

enhancementAutomatically generated release notes

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions