Open abarkat99 opened 2 years ago
Voting for Prioritization
Volunteering to Work on This Issue
I think this is default behaviour of a job_type = ONE_TIME
job type. Even in AWS console no way to delete both ONE_TIME
and SCHEDULED
jobs. Workaround for me is to use apply -replace <resource-job>
to cancel the previous job and create a new job. I use name_prefix
to generate random/unique job names.
Terraform Core Version
1.3.0
AWS Provider Version
4.12.1
Affected Resource(s)
aws_macie2_classification_job
Expected Behavior
When running destroy for a classification job whose status is "Complete" the job should get removed from the state.
Actual Behavior
Terraform tries to update the status of the Job to "Cancelled" and errors out.
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
No response