Skip to content

Commit

Permalink
Include the module version and some code formatting (terraform-aws-mo…
Browse files Browse the repository at this point in the history
…dules#52)

* Include the module version and some code formatting

* Explicitly specify the version for SG AWS module
  • Loading branch information
chenrui333 authored and antonbabenko committed Oct 31, 2018
1 parent 936c26a commit d90d012
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,18 @@ Terraform module which creates EC2 instance(s) on AWS.

These types of resources are supported:

* [EC2 instance](https://www.terraform.io/docs/providers/aws/r/instance.html)
* [EC2 instance](https://www.terraform.io/docs/providers/aws/r/instance.html)

## Usage

```hcl
module "ec2_cluster" {
source = "terraform-aws-modules/ec2-instance/aws"
source = "terraform-aws-modules/ec2-instance/aws"
version = "1.12.0"
name = "my-cluster"
instance_count = 5
name = "my-cluster"
instance_count = 5
ami = "ami-ebd02392"
instance_type = "t2.micro"
key_name = "user1"
Expand Down Expand Up @@ -67,12 +68,13 @@ data "aws_ami" "encrypted-ami" {
data "aws_ami" "ubuntu-xenial" {
most_recent = true
owners = ["099720109477"]
filter {
name = "name"
values = ["ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-*"]
}
owners = ["099720109477"]
}
```

Expand Down
3 changes: 2 additions & 1 deletion examples/basic/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ data "aws_ami" "amazon_linux" {
}

module "security_group" {
source = "terraform-aws-modules/security-group/aws"
source = "terraform-aws-modules/security-group/aws"
version = "2.7.0"

name = "example"
description = "Security group for example usage with EC2 instance"
Expand Down
3 changes: 2 additions & 1 deletion examples/volume-attachment/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ data "aws_ami" "amazon_linux" {
}

module "security_group" {
source = "terraform-aws-modules/security-group/aws"
source = "terraform-aws-modules/security-group/aws"
version = "2.7.0"

name = "example"
description = "Security group for example usage with EC2 instance"
Expand Down

0 comments on commit d90d012

Please sign in to comment.