Hi
Can we order the terrform resource execution?
I was trying to create s3 bucket and add vpc based policy to it… most of the time my run fails with below error… but when I apply again, successfully adds policy to bucket.
Error: Error deleting s3 policy: OperationAborted: A conflicting conditional operation is currently in progress against this resource, please try again.
status code: 409, request id:<>, host id:<>
My setup is like this
S3 bucket module
Bucket policy module which points to s3 bucket id(from s3 bucket module) as bucket id
Since Depends_on is not available for modules, need to figure out to wait for bucket created first before policy apply.
Thanks,