You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Updated label module to 0.11.1, allowed use of context
* formatted and readme
* Update label_variables.tf
Co-Authored-By: Andriy Knysh <[email protected]>
* Updated label to be in one file for portability. Updated some variable descriptions.
* updated readme
* Added an identifier to the descriptions of all label module variables. Added all variables that the Label module uses.
* Updated readme
* Updated readme
Copy file name to clipboardExpand all lines: README.md
+11-6Lines changed: 11 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -155,25 +155,30 @@ Available targets:
155
155
156
156
| Name | Description | Type | Default | Required |
157
157
|------|-------------|:----:|:-----:|:-----:|
158
-
| attributes | Additional attributes (e.g. `policy` or `role`) | list |`<list>`| no |
158
+
| additional_tag_map | Additional tags for appending to each tag map | map |`<map>`| no |
159
+
| attributes | Any extra attributes for naming these resources | list |`<list>`| no |
159
160
| availability_zones | List of Availability Zones where subnets will be created | list | - | yes |
160
161
| cidr_block | Base CIDR block which will be divided into subnet CIDR blocks (e.g. `10.0.0.0/16`) | string | - | yes |
161
-
| delimiter | Delimiter to be used between `namespace`, `stage`, `name`, and `attributes`| string |`-`| no |
162
+
| context | The context output from an external label module to pass to the label modules within this module | map |`<map>`| no |
163
+
| delimiter | Delimiter to be used between `namespace`, `stage`, `name` and `attributes`| string |`-`| no |
164
+
| environment | The environment name if not using stage | string | `` | no |
162
165
| igw_id | Internet Gateway ID the public route table will point to (e.g. `igw-9c26a123`) | string | - | yes |
166
+
| label_order | The naming order of the id output and Name tag | list |`<list>`| no |
163
167
| map_public_ip_on_launch | Instances launched into a public subnet should be assigned a public IP address | string |`true`| no |
164
168
| max_subnet_count | Sets the maximum amount of subnets to deploy. 0 will deploy a subnet for every provided availablility zone (in `availability_zones` variable) within the region | string |`0`| no |
165
-
| name |Name (e.g. `app`) | string |-|yes|
166
-
| namespace | Namespace (e.g. `cp` or `cloudposse`)| string |-|yes|
169
+
| name |Solution name, e.g. 'app' or 'jenkins' | string |``|no|
170
+
| namespace | Namespace, which could be your organization name or abbreviation, e.g. 'eg' or 'cp'| string |``|no|
167
171
| nat_gateway_enabled | Flag to enable/disable NAT Gateways to allow servers in the private subnets to access the Internet | string |`true`| no |
168
172
| nat_instance_enabled | Flag to enable/disable NAT Instances to allow servers in the private subnets to access the Internet | string |`false`| no |
169
173
| nat_instance_type | NAT Instance type | string |`t3.micro`| no |
170
174
| private_network_acl_id | Network ACL ID that will be added to private subnets. If empty, a new ACL will be created | string | `` | no |
171
175
| public_network_acl_id | Network ACL ID that will be added to public subnets. If empty, a new ACL will be created | string | `` | no |
176
+
| regex_replace_chars | Regex to replace chars with empty string in `namespace`, `environment`, `stage` and `name`. By default only hyphens, letters and digits are allowed, all other chars are removed | string |`/[^a-zA-Z0-9-]/`| no |
172
177
| region | AWS Region (e.g. `us-east-1`) | string | - | yes |
| stage | Stage, e.g. 'prod', 'staging', 'dev', or 'test' | string |``|no|
174
179
| subnet_type_tag_key | Key for subnet type tag to provide information about the type of subnets, e.g. `cpco.io/subnet/type=private` or `cpco.io/subnet/type=public`| string |`cpco.io/subnet/type`| no |
175
180
| subnet_type_tag_value_format | This is using the format interpolation symbols to allow the value of the subnet_type_tag_key to be modified. | string |`%s`| no |
Copy file name to clipboardExpand all lines: docs/terraform.md
+11-6Lines changed: 11 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,25 +2,30 @@
2
2
3
3
| Name | Description | Type | Default | Required |
4
4
|------|-------------|:----:|:-----:|:-----:|
5
-
| attributes | Additional attributes (e.g. `policy` or `role`) | list |`<list>`| no |
5
+
| additional_tag_map | Additional tags for appending to each tag map | map |`<map>`| no |
6
+
| attributes | Any extra attributes for naming these resources | list |`<list>`| no |
6
7
| availability_zones | List of Availability Zones where subnets will be created | list | - | yes |
7
8
| cidr_block | Base CIDR block which will be divided into subnet CIDR blocks (e.g. `10.0.0.0/16`) | string | - | yes |
8
-
| delimiter | Delimiter to be used between `namespace`, `stage`, `name`, and `attributes`| string |`-`| no |
9
+
| context | The context output from an external label module to pass to the label modules within this module | map |`<map>`| no |
10
+
| delimiter | Delimiter to be used between `namespace`, `stage`, `name` and `attributes`| string |`-`| no |
11
+
| environment | The environment name if not using stage | string | `` | no |
9
12
| igw_id | Internet Gateway ID the public route table will point to (e.g. `igw-9c26a123`) | string | - | yes |
13
+
| label_order | The naming order of the id output and Name tag | list |`<list>`| no |
10
14
| map_public_ip_on_launch | Instances launched into a public subnet should be assigned a public IP address | string |`true`| no |
11
15
| max_subnet_count | Sets the maximum amount of subnets to deploy. 0 will deploy a subnet for every provided availablility zone (in `availability_zones` variable) within the region | string |`0`| no |
12
-
| name |Name (e.g. `app`) | string |-|yes|
13
-
| namespace | Namespace (e.g. `cp` or `cloudposse`)| string |-|yes|
16
+
| name |Solution name, e.g. 'app' or 'jenkins' | string |``|no|
17
+
| namespace | Namespace, which could be your organization name or abbreviation, e.g. 'eg' or 'cp'| string |``|no|
14
18
| nat_gateway_enabled | Flag to enable/disable NAT Gateways to allow servers in the private subnets to access the Internet | string |`true`| no |
15
19
| nat_instance_enabled | Flag to enable/disable NAT Instances to allow servers in the private subnets to access the Internet | string |`false`| no |
16
20
| nat_instance_type | NAT Instance type | string |`t3.micro`| no |
17
21
| private_network_acl_id | Network ACL ID that will be added to private subnets. If empty, a new ACL will be created | string | `` | no |
18
22
| public_network_acl_id | Network ACL ID that will be added to public subnets. If empty, a new ACL will be created | string | `` | no |
23
+
| regex_replace_chars | Regex to replace chars with empty string in `namespace`, `environment`, `stage` and `name`. By default only hyphens, letters and digits are allowed, all other chars are removed | string |`/[^a-zA-Z0-9-]/`| no |
19
24
| region | AWS Region (e.g. `us-east-1`) | string | - | yes |
| stage | Stage, e.g. 'prod', 'staging', 'dev', or 'test' | string |``|no|
21
26
| subnet_type_tag_key | Key for subnet type tag to provide information about the type of subnets, e.g. `cpco.io/subnet/type=private` or `cpco.io/subnet/type=public`| string |`cpco.io/subnet/type`| no |
22
27
| subnet_type_tag_value_format | This is using the format interpolation symbols to allow the value of the subnet_type_tag_key to be modified. | string |`%s`| no |
description="Additional tags for appending to each tag map"
20
+
}
21
+
22
+
variable"label_order" {
23
+
type="list"
24
+
default=[]
25
+
description="The naming order of the id output and Name tag"
26
+
}
27
+
28
+
variable"regex_replace_chars" {
29
+
type="string"
30
+
default="/[^a-zA-Z0-9-]/"
31
+
description="Regex to replace chars with empty string in `namespace`, `environment`, `stage` and `name`. By default only hyphens, letters and digits are allowed, all other chars are removed"
32
+
}
33
+
34
+
variable"tags" {
35
+
description="Additional tags to apply to all resources that use this label module"
36
+
type="map"
37
+
default={}
38
+
}
39
+
40
+
variable"namespace" {
41
+
type="string"
42
+
default=""
43
+
description="Namespace, which could be your organization name or abbreviation, e.g. 'eg' or 'cp'"
44
+
}
45
+
46
+
variable"stage" {
47
+
type="string"
48
+
default=""
49
+
description="Stage, e.g. 'prod', 'staging', 'dev', or 'test'"
50
+
}
51
+
52
+
variable"name" {
53
+
type="string"
54
+
default=""
55
+
description="Solution name, e.g. 'app' or 'jenkins'"
56
+
}
57
+
58
+
variable"environment" {
59
+
description="The environment name if not using stage"
60
+
default=""
61
+
}
62
+
63
+
variable"attributes" {
64
+
type="list"
65
+
description="Any extra attributes for naming these resources"
66
+
default=[]
67
+
}
68
+
69
+
variable"delimiter" {
70
+
type="string"
71
+
default="-"
72
+
description="Delimiter to be used between `namespace`, `stage`, `name` and `attributes`"
73
+
}
74
+
75
+
variable"context" {
76
+
type="map"
77
+
description="The context output from an external label module to pass to the label modules within this module"
description="Key for subnet type tag to provide information about the type of subnets, e.g. `cpco.io/subnet/type=private` or `cpco.io/subnet/type=public`"
0 commit comments