version 0.66.4
breaks if we use policies that are not created before using it.
#191
Labels
bug
🐛 An issue with the system
Describe the Bug
If a policy ARN is provided as
task_exec_policy_arns
and this policy is created at the same time the module is, then :0.66.3
0.66.4
(since the switch fromcount
tofor_each
)The error returned by version
0.66.4
isAdding the s3 policy in
depends_on
didn't help.Expected Behavior
A minor version should not introduces breaking changes.
The provided code should still work.
Note we can workaround the issue by :
Steps to Reproduce
Here is a sample code (dummy policy but sufficient to demonstrate) that is run successfully in
0.66.3
but fails in0.66.4
.It may be possible to adapt it and create the policy before running service-task module but that's not very automation-friendly.
Steps to reproduce the behavior:
1 -
terraform init
2 -
terraform apply
3 - Ensure everything is ok
4 -
terraform destroy
(required, otherwise the policy would exists and everything would be running fine)5 - Change the
api-service-task
module version from0.66.3
to0.66.4
6 -
terraform init --upgrade && terraform apply
The text was updated successfully, but these errors were encountered: