Closed alena-volchanskaia closed 1 year ago
I believe the solution here is to avoid prescribing more than 10 tags. How would you propose we resolve this issue for users?
We can introduce another variable just for s3 tags, like here - https://github.com/terraform-aws-modules/terraform-aws-lambda/blob/master/main.tf#L163
Hi! Would you happen to have any updates/solutions about the issue?
Unfortunately, we can't reduce the number of our tags, because other objects use them for filtering data.
I think the type of solution that Anton linked to would satisfy this issue - PRs are welcomed
This issue has been resolved in version 5.0.1 :tada:
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Description
The number of tags that can be attached to an s3 bucket object is 10 AWS Documentation For other AWS resources, this limit is 50.
So, in the case when we use more than 10 tags for the whole module we have an error
⚠️ Note
It doesn't depend on terraform. It's AWS limit.
Versions
Module version [Required]: "terraform-aws-modules/datadog-forwarders/aws//modules/log_forwarder" version = "4.1.1"
Terraform version: Terraform v0.14.11
Provider version(s): ├── provider[registry.terraform.io/hashicorp/aws] ~> 4.0 ├── provider[registry.terraform.io/opsgenie/opsgenie] ~> 0.6 ├── provider[terraform.io/builtin/terraform] ├── module.tags │ └── provider[registry.terraform.io/hashicorp/aws] >= 3.38.0 ├── module.datadog_log_forwarder │ ├── provider[registry.terraform.io/hashicorp/aws] >= 4.0.0 │ ├── provider[registry.terraform.io/hashicorp/null] >= 3.0.0 │ └── module.this_s3_bucket │ └── provider[registry.terraform.io/hashicorp/aws] >= 3.75.0 ├── module.labels └── module.opsgenie_service ├── provider[registry.terraform.io/opsgenie/opsgenie] ~> 0.6 └── provider[registry.terraform.io/hashicorp/null]
Providers required by state: provider[registry.terraform.io/hashicorp/aws] provider[registry.terraform.io/hashicorp/null] provider[terraform.io/builtin/terraform]
Reproduction Code [Required]
Steps to reproduce the behavior:
You need also to add more than 10 tags to the variable tags ;
Expected behavior
The bucket zip object created without any tags
Actual behavior
Now the bucket zip object tags as other AWS resources, but terraform isn't applied if the tags count more than 10
Terminal Output Screenshot(s)
Additional context
-