Closed alvintownsend closed 5 days ago
Same issue with aws provider hashicorp/aws v3.68.0
Hello, any update ?
Same issue with provider hashicorp/aws v3.61.0
.
Same issue with provider
hashicorp/aws v3.61.0
.
This worked for me, as a workaround:
lifecycle_policy {
transition_to_ia = "AFTER_14_DAYS"
}
lifecycle_policy {
# https://github.com/hashicorp/terraform-provider-aws/issues/21862
transition_to_primary_storage_class = "AFTER_1_ACCESS"
}
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.
If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
I had an existing Terraform AWS EFS volume without a
lifecycle_policy
. I subsequently added thelifecycle_policy
as noted above.It is expected that the
lifecycle_policy
with both thetransition_to_ia
andtransition_to_primary_storage_class
would be set to their respective values.Actual Behavior
I received the following error:
Steps to Reproduce
terraform plan -out my.plan
terraform apply my.plan
Important Factoids
The
lifecycle_policy
works fine with just one of the values:or
but never both in the same block.
I've also tried applying with just one (the
transition_to_ia
) and then adding the second (transition_to_primary_storage_class
) with a second apply, but I get the same error message.What does work but is unclear from the documentation:
References
20953