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
Copy file name to clipboardExpand all lines: README.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,11 @@ We literally have [*hundreds of terraform modules*][terraform_modules] that are
53
53
54
54
## Usage
55
55
56
+
57
+
**IMPORTANT:** The `master` branch is used in `source` just as an example. In your code, do not pin to `master` because there may be breaking changes between releases.
58
+
Instead pin to the release tag (e.g. `?ref=tags/x.y.z`) of one of our [latest releases](https://github.com/cloudposse/terraform-aws-ec2-instance-group/releases).
59
+
60
+
56
61
Note: add `${var.ssh_key_pair}` private key to the `ssh agent`.
57
62
58
63
Include this repository as a module in your existing terraform code.
@@ -67,6 +72,7 @@ module "instance" {
67
72
stage = "prod"
68
73
name = "app"
69
74
ami = "ami-a4dc46db"
75
+
ami_owner = "099720109477"
70
76
ssh_key_pair = "${var.ssh_key_pair}"
71
77
instance_type = "${var.instance_type}"
72
78
vpc_id = "${var.vpc_id}"
@@ -86,6 +92,7 @@ module "kafka_instance" {
86
92
stage = "prod"
87
93
name = "app"
88
94
ami = "ami-a4dc46db"
95
+
ami_owner = "099720109477"
89
96
ssh_key_pair = "${var.ssh_key_pair}"
90
97
vpc_id = "${var.vpc_id}"
91
98
security_groups = ["${var.security_groups}"]
@@ -139,6 +146,7 @@ Available targets:
139
146
| additional_ips_count | Count of additional EIPs | string |`0`| no |
140
147
| allowed_ports | List of allowed ingress ports | list |`<list>`| no |
141
148
| ami | The AMI to use for the instance. | string | - | yes |
149
+
| ami_owner | Owner of the given AMI | string | - | yes |
142
150
| applying_period | The period in seconds over which the specified statistic is applied | string |`60`| no |
143
151
| assign_eip_address | Assign an Elastic IP address to the instance | string |`true`| no |
144
152
| associate_public_ip_address | Associate a public IP address with the instance | string |`true`| no |
0 commit comments