File tree Expand file tree Collapse file tree 1 file changed +21
-5
lines changed Expand file tree Collapse file tree 1 file changed +21
-5
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,20 @@ A Terraform module to create AWS VPC along with its resources:
12
12
Below is an example how to call and use the module, kindly check the example folder for more detailed output
13
13
14
14
``` hcl
15
+ module "label" {
16
+ source = "github.com/obytes/terraform-aws-tag.git?ref=v1.0.7"
17
+ project_name = "pto"
18
+ region = "eu-west-2"
19
+ environment = "qa"
20
+ prefix_length_limit = 12
21
+ }
22
+
15
23
module "example1" {
16
- source = "github.com/obytes/terraform-aws-vpc.git?ref=v1.0.7"
17
- environment = "qa"
18
- project_name = "on-cost"
19
- region = "eu-west-2"
24
+ source = "github.com/obytes/terraform-aws-vpc.git?ref=v1.0.8"
25
+ enabled = true
26
+ prefix = module.label.id
27
+ name = "vpc"
28
+ additional_tags = module.label.tags
20
29
cidr_block = "172.16.0.0/18"
21
30
enable_dns_hostnames = true
22
31
enable_nat_gateway = true
@@ -28,7 +37,14 @@ module "example1" {
28
37
Managed = "Terraform"
29
38
Default = "Yes"
30
39
}
31
-
40
+ additional_public_subnet_tags = {
41
+ "kubernetes.io/cluster/cluster-name" = "shared"
42
+ "kubernetes.io/role/elb" = 1
43
+ }
44
+ additional_private_subnet_tags = {
45
+ "kubernetes.io/cluster/cluster-name" = "shared"
46
+ "kubernetes.io/role/internal-elb" = 1
47
+ }
32
48
}
33
49
34
50
```
You can’t perform that action at this time.
0 commit comments