terraform-community-modules / tf_aws_vpc

[DEPRECATED] Use https://github.com/terraform-aws-modules/terraform-aws-vpc
Other
210 stars 203 forks source link

Add tags variable #27

Closed typerlc closed 7 years ago

typerlc commented 7 years ago

Allow caller to pass additional tags to be added to all resources. e.g. this can be used to add a tag defining the environment.

Usage is like:

module "vpc" {
    source = "git@github.com:typerlc/tf_aws_vpc.git?ref=add_tags_variable"
    name   = ...
    cidr      = ...

    azs       = ...
    private_subnets = ...
    public_subnets  = ...

    tags {
        "Terraform" = "true"
        "Environment" = "${var.environment}"
    }
}
antonbabenko commented 7 years ago

Very good! Could you please update README.md with example.

typerlc commented 7 years ago

Done.