-
-
Notifications
You must be signed in to change notification settings - Fork 839
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot add lifecycle_configuration_rules
with expires and without
#137
Comments
This is more of a terraform limitation then a module limitation. I don't see how this is possible to be honest. The workaround makes sense to me. Does -1 for days work?
|
In general, what they changed, they probably tested only on simple examples. 😄
I try set |
@ByJacob There are a few issues here, none of which are specific to this module or something we can fix. Terraform requires all the elements of a list to have the same type. This means complex objects need to have the same structure. To fix the terraform error
you need to replace expiration = {
days = null
expired_object_delete_marker = null
} This fixes Terraform's complaint and will cause
I have reported this as hashicorp/terraform-provider-aws#23882 and, while trying to find a workaround, reported hashicorp/terraform-provider-aws#23883 and hashicorp/terraform-provider-aws#23884 as well. I want to wait and see what kind of response we get from AWS before going and further with this. Ideally they will fix the bugs and we will not need to make any changes in this module. |
Looks like this will be fixable once AWS provider v4.9.0 is released. See hashicorp/terraform-provider-aws#23893 |
This was an upstream bug fixed in AWS Terraform provider v4.9.0 |
Found a bug? Maybe our Slack Community can help.
Describe the Bug
I'd like to add policies where one is with the
expiration
parameter and the other is not.Expected Behavior
The policy will be added correctly
Steps to Reproduce
Steps to reproduce the behavior:
Screenshots
Error in terminal:
Environment (please complete the following information):
Anything that will help us triage the bug will help. Here are some ideas:
Additional Context
By dynamic typing it requires that the items in the list will always be the same (expires will consist of the same keys)
https://www.terraform.io/language/expressions/type-constraints#dynamic-types-the-any-constraint
Workaround:
The text was updated successfully, but these errors were encountered: