Commit 7f30697e authored by Anton Babenko's avatar Anton Babenko

Fix formatting

parent 19e05849
...@@ -15,8 +15,9 @@ data "aws_subnet_ids" "all" { ...@@ -15,8 +15,9 @@ data "aws_subnet_ids" "all" {
data "aws_ami" "amazon_linux" { data "aws_ami" "amazon_linux" {
most_recent = true most_recent = true
owners = ['amazon']
owners = ["amazon"]
filter { filter {
name = "name" name = "name"
......
...@@ -19,13 +19,18 @@ $ terraform apply ...@@ -19,13 +19,18 @@ $ terraform apply
Note that this example may create resources which can cost money. Run `terraform destroy` when you don't need these resources. Note that this example may create resources which can cost money. Run `terraform destroy` when you don't need these resources.
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK --> <!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|:----:|:-----:|:-----:|
| instances\_number | | string | `"1"` | no |
## Outputs ## Outputs
| Name | Description | | Name | Description |
|------|-------------| |------|-------------|
| ebs\_volume\_attachment\_id | The volume ID | | ebs\_volume\_attachment\_id | The volume ID |
| ebs\_volume\_attachment\_instance\_id | The instance ID | | ebs\_volume\_attachment\_instance\_id | The instance ID |
| instance\_id | EC2 instance ID | | instances\_public\_ips | Public IPs assigned to the EC2 instance |
| instance\_public\_dns | Public DNS name assigned to the EC2 instance |
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK --> <!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
...@@ -2,6 +2,10 @@ provider "aws" { ...@@ -2,6 +2,10 @@ provider "aws" {
region = "eu-west-1" region = "eu-west-1"
} }
variable "instances_number" {
default = 1
}
################################################################## ##################################################################
# Data sources to get VPC, subnet, security group and AMI details # Data sources to get VPC, subnet, security group and AMI details
################################################################## ##################################################################
......
variable "instances_number" {
default = 1
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment