Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
terraform-aws-ec2-instance
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Terraform Modules
terraform-aws-ec2-instance
Commits
9b003307
Commit
9b003307
authored
Mar 06, 2018
by
Anton Babenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed count to instance_count (fixes #23)
parent
674be84a
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
7 deletions
+7
-7
.pre-commit-config.yaml
.pre-commit-config.yaml
+1
-1
README.md
README.md
+3
-3
main.tf
examples/basic/main.tf
+1
-1
main.tf
main.tf
+1
-1
variables.tf
variables.tf
+1
-1
No files found.
.pre-commit-config.yaml
View file @
9b003307
repos
:
repos
:
-
repo
:
git://github.com/antonbabenko/pre-commit-terraform
-
repo
:
git://github.com/antonbabenko/pre-commit-terraform
sha
:
v1.
4
.0
sha
:
v1.
5
.0
hooks
:
hooks
:
-
id
:
terraform_fmt
-
id
:
terraform_fmt
-
repo
:
git://github.com/pre-commit/pre-commit-hooks
-
repo
:
git://github.com/pre-commit/pre-commit-hooks
...
...
README.md
View file @
9b003307
...
@@ -15,7 +15,7 @@ module "ec2_cluster" {
...
@@ -15,7 +15,7 @@ module "ec2_cluster" {
source
=
"terraform-aws-modules/ec2-instance/aws"
source
=
"terraform-aws-modules/ec2-instance/aws"
name
=
"my-cluster"
name
=
"my-cluster"
count
=
5
instance_
count
=
5
ami
=
"ami-ebd02392"
ami
=
"ami-ebd02392"
instance_type
=
"t2.micro"
instance_type
=
"t2.micro"
...
...
examples/basic/main.tf
View file @
9b003307
...
@@ -45,7 +45,7 @@ module "security_group" {
...
@@ -45,7 +45,7 @@ module "security_group" {
egress_rules
=
[
"all-all"
]
egress_rules
=
[
"all-all"
]
}
}
resource
"aws_eip"
"
openvnp_eip
"
{
resource
"aws_eip"
"
this
"
{
vpc
=
true
vpc
=
true
instance
=
"
${module
.
ec2
.
id
[
0
]
}
"
instance
=
"
${module
.
ec2
.
id
[
0
]
}
"
}
}
...
...
main.tf
View file @
9b003307
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
# EC2 instance
# EC2 instance
######
######
resource
"aws_instance"
"this"
{
resource
"aws_instance"
"this"
{
count
=
"
${
var
.
count
}
"
count
=
"
${
var
.
instance_
count
}
"
ami
=
"
${
var
.
ami
}
"
ami
=
"
${
var
.
ami
}
"
instance_type
=
"
${
var
.
instance_type
}
"
instance_type
=
"
${
var
.
instance_type
}
"
...
...
variables.tf
View file @
9b003307
...
@@ -2,7 +2,7 @@ variable "name" {
...
@@ -2,7 +2,7 @@ variable "name" {
description
=
"Name to be used on all resources as prefix"
description
=
"Name to be used on all resources as prefix"
}
}
variable
"count"
{
variable
"
instance_
count"
{
description
=
"Number of instances to launch"
description
=
"Number of instances to launch"
default
=
1
default
=
1
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment