-
Notifications
You must be signed in to change notification settings - Fork 151
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
Configure S3 bucket tags #216
Comments
Tags can only be added to all resources managed by the module, but not to specific resources within the module. There are 2 ways to add tags to the resources:
module "tf_next" {
source = "milliHQ/next-js/aws"
providers = {
aws.global_region = aws.global_region
}
+ tags = {
+ Name = "my-identiefier"
+ }
}
provider "aws" {
default_tags {
tags = {
Name = "my-identiefier"
}
}
} If that not helps I would like to know more about your use-case, why the buckets need a specific tagging. |
It's company policy to attach specific tags to S3 buckets. Helps the security team manage each resource. |
So adding the tags to all resources of the module (which would be also propagated to the S3 buckets) as described in my comment above is not working for this case? |
I only want those tags on the S3 resources. |
Okay, I decided to add an option for this case to pass tags specifically to the S3 resources created by the module. |
Thank you! |
There is now a new input variable |
I've searched the questions in this repository and wasn't able to find an answer.
Is there a way to configure tags or other options for the generated S3 buckets? I'd like to base them off of environment variables.
The text was updated successfully, but these errors were encountered: