Open amol621984 opened 3 years ago
Terraform doc shows only below options. But that doesn't seem to solve the issue.
I face the same issue as well. Same scenario and job_status parameter is not helping. :(
I've also face this error. Replacing resource could resolve my issue.
terraform apply -replace="resource.path"
I am having this error too. I can't update the list of buckets to be analysed in a job.
I did some investigation on why this might be happening, and the problem is in the resourceClassificationJobUpdate
function of the Terraform resource:
https://github.com/hashicorp/terraform-provider-aws/blob/c44a5b971247fb197725a063532b4f1421c958dc/internal/service/macie2/classification_job.go#L703-L711
The JobStatus
is a required field, according to the AWS SDK documentation..
It does look it's related to the error, since it happens when JobStatus
is not set.
i have the same issue
I'm experiencing the same issue precisely. Even with the job_status attribute as "RUNNING", the error persists in TF Apply.
Same for me. I needed to switch job_status
from/to RUNNING
(i.e. Active (Idle)
) and USER_PAUSED
everytime apply
is needed, doesn't make sense.
│ Error: updating Macie ClassificationJob (f24a3b...): InvalidParameter: 1 validation error(s) found.
│ - missing required field, UpdateClassificationJobInput.JobStatus.
│
This issue is still prevalent on AWS provider ~4.16. Any updates on a fix?
Description
Output
Getting below error on terraform apply, even though I am not trying to update job_status on macie job. The job type is daily scheduled. I tried adding
job_status
parameter, but that did not seem to resolve the issue.code snippet
References
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/macie2_classification_job
https://docs.aws.amazon.com/macie/latest/user/discovery-jobs.html