Skip to content
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

Consider how to integrate with default_tags #42

Open
colekettler opened this issue Sep 2, 2021 · 0 comments
Open

Consider how to integrate with default_tags #42

colekettler opened this issue Sep 2, 2021 · 0 comments

Comments

@colekettler
Copy link

Copied from azavea/terraform-aws-vpc#29.

Version 3.38.0 of the Terraform AWS Provider introduced a way to define a default set of tags that propagate to all AWS resources that support tags.

Any tags defined at the resource level are merged with tags defined at the provider level and are accessible via a new read-only attribute, tags_all.

e.g.:

# module.vpc.aws_vpc.default will be created
+ resource "aws_vpc" "default" {
    + arn                              = (known after apply)
    + assign_generated_ipv6_cidr_block = false
    + cidr_block                       = "10.0.0.0/16"
    + default_network_acl_id           = (known after apply)
    + default_route_table_id           = (known after apply)
    + default_security_group_id        = (known after apply)
    + dhcp_options_id                  = (known after apply)
    + enable_classiclink               = (known after apply)
    + enable_classiclink_dns_support   = (known after apply)
    + enable_dns_hostnames             = true
    + enable_dns_support               = true
    + id                               = (known after apply)
    + instance_tenancy                 = "default"
    + ipv6_association_id              = (known after apply)
    + ipv6_cidr_block                  = (known after apply)
    + main_route_table_id              = (known after apply)
    + owner_id                         = (known after apply)
    + tags                             = {
        + "Environment" = "Staging"
        + "Name"        = "vpcStaging"
        + "Project"     = "Something"
      }
    + tags_all                         = {
        + "Environment" = "Staging"
        + "Name"        = "vpcStaging"
        + "Project"     = "Something"
      }
  }

I think we should consider how we'd drop the Environment and Project tags and instructs folks to use default_tags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant