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
c269860b
Commit
c269860b
authored
Jun 02, 2018
by
Rob Larsen
Committed by
Anton Babenko
Jun 02, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added encrypted AMI info (#34)
parent
599707bc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
0 deletions
+43
-0
README.md
README.md
+43
-0
No files found.
README.md
View file @
c269860b
...
@@ -33,6 +33,49 @@ module "ec2_cluster" {
...
@@ -33,6 +33,49 @@ module "ec2_cluster" {
*
[
Basic EC2 instance
](
https://github.com/terraform-aws-modules/terraform-aws-ec2-instance/tree/master/examples/basic
)
*
[
Basic EC2 instance
](
https://github.com/terraform-aws-modules/terraform-aws-ec2-instance/tree/master/examples/basic
)
## Make an encrypted ami for use
This module does not sopport encrypted AMI's out of the box however it is easy enough for you to generate one for use
This example creates an encrypted image from the latest ubuntu 16.04 base image.
```
hcl
resource
"aws_ami_copy"
"ubuntu-xenial-encrypted-ami"
{
name
=
"ubuntu-xenial-encrypted-ami"
description
=
"An encrypted root ami based off ${data.aws_ami.ubuntu-xenial.id}"
source_ami_id
=
"${data.aws_ami.ubuntu-xenial.id}"
source_ami_region
=
"eu-west-2"
encrypted
=
"true"
tags
{
Name
=
"ubuntu-xenial-encrypted-ami"
}
}
data
"aws_ami"
"encrypted-ami"
{
most_recent
=
true
filter
{
name
=
"name"
values
=
[
"ubuntu-xenial-encrypted"
]
}
owners
=
[
"self"
]
}
data
"aws_ami"
"ubuntu-xenial"
{
most_recent
=
true
owners
=
[
"099720109477"
]
filter
{
name
=
"name"
values
=
[
"ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-*"
]
}
}
```
## Limitations
## Limitations
*
`network_interface`
can't be specified together with
`associate_public_ip_address`
, which makes
`network_interface`
*
`network_interface`
can't be specified together with
`associate_public_ip_address`
, which makes
`network_interface`
...
...
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