Skip to content

Commit f6a9c09

Browse files
author
Sohan Yadav
committed
update reademe
1 parent 5bcf414 commit f6a9c09

File tree

3 files changed

+46
-40
lines changed

3 files changed

+46
-40
lines changed

Diff for: README.md

+22-19
Original file line numberDiff line numberDiff line change
@@ -72,28 +72,31 @@ This module has a few dependencies:
7272
Here is an example of how you can use this module in your inventory structure:
7373
```hcl
7474
module "ec2" {
75-
source = "git::https://github.com/clouddrove/terraform-aws-ec2.git?ref=tags/0.12.2"
76-
name = "ec2-instance"
77-
application = "clouddrove"
78-
environment = "test"
79-
label_order = ["environment", "name", "application"]
80-
instance_count = 2
81-
ami = "ami-08d658f84a6d84a80"
82-
ebs_optimized = false
83-
instance_type = "t2.nano"
84-
key_name = module.keypair.name
85-
monitoring = false
86-
associate_public_ip_address = true
87-
tenancy = "default"
88-
disk_size = 8
75+
source = "git::https://github.com/clouddrove/terraform-aws-ec2.git?ref=tags/0.12.3"
76+
name = "ec2-instance"
77+
application = "clouddrove"
78+
environment = "test"
79+
label_order = ["environment", "application", "name"] instance_count = 2
80+
ami = "ami-08d658f84a6d84a80"
81+
instance_type = "t2.nano"
82+
key_name = module.keypair.name
83+
monitoring = false
84+
tenancy = "default"
8985
vpc_security_group_ids_list = [module.ssh.security_group_ids, module.http-https.security_group_ids]
9086
subnet_ids = tolist(module.public_subnets.public_subnet_id)
9187
assign_eip_address = true
92-
ebs_volume_enabled = true
93-
ebs_volume_type = "gp2"
94-
ebs_volume_size = 30
95-
user_data = "./_bin/user_data.sh"
96-
instance_tags = {"snapshot"=true}
88+
associate_public_ip_address = true
89+
instance_profile_enabled = true
90+
iam_instance_profile = module.iam-role.name
91+
disk_size = 8
92+
ebs_optimized = false
93+
ebs_volume_enabled = true
94+
ebs_volume_type = "gp2"
95+
ebs_volume_size = 30
96+
user_data = "./_bin/user_data.sh"
97+
instance_tags = { "snapshot" = true }
98+
dns_zone_id = "Z1XJD7SSBKXLC1"
99+
hostname = "ec2"
97100
}
98101
```
99102

Diff for: README.yaml

+22-19
Original file line numberDiff line numberDiff line change
@@ -36,27 +36,30 @@ usage : |-
3636
Here is an example of how you can use this module in your inventory structure:
3737
```hcl
3838
module "ec2" {
39-
source = "git::https://github.com/clouddrove/terraform-aws-ec2.git?ref=tags/0.12.2"
40-
name = "ec2-instance"
41-
application = "clouddrove"
42-
environment = "test"
43-
label_order = ["environment", "name", "application"]
44-
instance_count = 2
45-
ami = "ami-08d658f84a6d84a80"
46-
ebs_optimized = false
47-
instance_type = "t2.nano"
48-
key_name = module.keypair.name
49-
monitoring = false
50-
associate_public_ip_address = true
51-
tenancy = "default"
52-
disk_size = 8
39+
source = "git::https://github.com/clouddrove/terraform-aws-ec2.git?ref=tags/0.12.3"
40+
name = "ec2-instance"
41+
application = "clouddrove"
42+
environment = "test"
43+
label_order = ["environment", "application", "name"] instance_count = 2
44+
ami = "ami-08d658f84a6d84a80"
45+
instance_type = "t2.nano"
46+
key_name = module.keypair.name
47+
monitoring = false
48+
tenancy = "default"
5349
vpc_security_group_ids_list = [module.ssh.security_group_ids, module.http-https.security_group_ids]
5450
subnet_ids = tolist(module.public_subnets.public_subnet_id)
5551
assign_eip_address = true
56-
ebs_volume_enabled = true
57-
ebs_volume_type = "gp2"
58-
ebs_volume_size = 30
59-
user_data = "./_bin/user_data.sh"
60-
instance_tags = {"snapshot"=true}
52+
associate_public_ip_address = true
53+
instance_profile_enabled = true
54+
iam_instance_profile = module.iam-role.name
55+
disk_size = 8
56+
ebs_optimized = false
57+
ebs_volume_enabled = true
58+
ebs_volume_type = "gp2"
59+
ebs_volume_size = 30
60+
user_data = "./_bin/user_data.sh"
61+
instance_tags = { "snapshot" = true }
62+
dns_zone_id = "Z1XJD7SSBKXLC1"
63+
hostname = "ec2"
6164
}
6265
```

Diff for: _example/example.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module "keypair" {
1111
}
1212

1313
module "vpc" {
14-
source = "git::https://github.com/clouddrove/terraform-aws-vpc.git?ref=tags/0.12.3"
14+
source = "git::https://github.com/clouddrove/terraform-aws-vpc.git?ref=tags/0.12.4"
1515

1616
name = "vpc"
1717
application = "clouddrove"
@@ -22,7 +22,7 @@ module "vpc" {
2222
}
2323

2424
module "public_subnets" {
25-
source = "git::https://github.com/clouddrove/terraform-aws-subnet.git?ref=tags/0.12.2"
25+
source = "git::https://github.com/clouddrove/terraform-aws-subnet.git?ref=tags/0.12.3"
2626

2727
name = "public-subnet"
2828
application = "clouddrove"

0 commit comments

Comments
 (0)