ON_DEMAND triggers cannot be started via enabled flag #17413
Labels
bug
Addresses a defect in current functionality.
service/glue
Issues and PRs that pertain to the glue service.
Milestone
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Expected Behavior
Its likely ON_DEMAND triggers start/stop behavior should be covered by a separate resource in line with: https://github.com/hashicorp/terraform-provider-aws/blob/main/docs/contributing/provider-design.md#task-execution-and-waiter-resources. But in its current state practitioners are likely to expect the start to be able to be controlled with the enable flag.
Actual Behavior
Glue triggers which are set to
ON_DEMAND
currently cannot be started via the provider. Starting an ON_DEMAND requires an explicit call to the Start Trigger, where other trigger types can be started on creation, or via the enabled flag which calls this endpoint.The current logic calls this API on update when the enabled value is changed to true. However an
ON_DEMAND
trigger can never have its enabled flag set to false, as theStopTrigger
API call will error with:If you configure an ON_DEMAND trigger to be disabled on creation, it will not error, but attempting to enable it later, Terraform will detect no changes and thus the start API call will not occur.
Steps to Reproduce
terraform apply
ON_DEMAND config with enabled = trueterraform apply
References
The text was updated successfully, but these errors were encountered: