File tree Expand file tree Collapse file tree 4 files changed +14
-7
lines changed Expand file tree Collapse file tree 4 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,9 @@ data "aws_subnet_ids" "all" {
15
15
16
16
data "aws_ami" "amazon_linux" {
17
17
most_recent = true
18
- owners = ['amazon ']
19
-
18
+
19
+ owners = [" amazon" ]
20
+
20
21
filter {
21
22
name = " name"
22
23
Original file line number Diff line number Diff line change @@ -19,13 +19,18 @@ $ terraform apply
19
19
Note that this example may create resources which can cost money. Run ` terraform destroy ` when you don't need these resources.
20
20
21
21
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
22
+ ## Inputs
23
+
24
+ | Name | Description | Type | Default | Required |
25
+ | ------| -------------| :----:| :-----:| :-----:|
26
+ | instances\_ number | | string | ` "1" ` | no |
27
+
22
28
## Outputs
23
29
24
30
| Name | Description |
25
31
| ------| -------------|
26
32
| ebs\_ volume\_ attachment\_ id | The volume ID |
27
33
| ebs\_ volume\_ attachment\_ instance\_ id | The instance ID |
28
- | instance\_ id | EC2 instance ID |
29
- | instance\_ public\_ dns | Public DNS name assigned to the EC2 instance |
34
+ | instances\_ public\_ ips | Public IPs assigned to the EC2 instance |
30
35
31
36
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
Original file line number Diff line number Diff line change @@ -2,6 +2,10 @@ provider "aws" {
2
2
region = " eu-west-1"
3
3
}
4
4
5
+ variable "instances_number" {
6
+ default = 1
7
+ }
8
+
5
9
# #################################################################
6
10
# Data sources to get VPC, subnet, security group and AMI details
7
11
# #################################################################
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments