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
7f30697e
Commit
7f30697e
authored
Mar 22, 2019
by
Anton Babenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix formatting
parent
19e05849
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
7 deletions
+14
-7
main.tf
examples/basic/main.tf
+3
-2
README.md
examples/volume-attachment/README.md
+7
-2
main.tf
examples/volume-attachment/main.tf
+4
-0
variables.tf
examples/volume-attachment/variables.tf
+0
-3
No files found.
examples/basic/main.tf
View file @
7f30697e
...
@@ -15,7 +15,8 @@ data "aws_subnet_ids" "all" {
...
@@ -15,7 +15,8 @@ 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"
...
...
examples/volume-attachment/README.md
View file @
7f30697e
...
@@ -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 -->
examples/volume-attachment/main.tf
View file @
7f30697e
...
@@ -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
##################################################################
##################################################################
...
...
examples/volume-attachment/variables.tf
deleted
100644 → 0
View file @
19e05849
variable
"instances_number"
{
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