Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/linguinecode/terraform-aws-ec2-instance
A terraform module that creates an EC2 instance with Simple Systems Manager (SSM) support enabled
https://github.com/linguinecode/terraform-aws-ec2-instance
Last synced: 22 days ago
JSON representation
A terraform module that creates an EC2 instance with Simple Systems Manager (SSM) support enabled
- Host: GitHub
- URL: https://github.com/linguinecode/terraform-aws-ec2-instance
- Owner: LinguineCode
- License: mit
- Created: 2018-10-30T18:47:08.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-30T20:54:52.000Z (about 6 years ago)
- Last Synced: 2024-10-28T09:33:50.828Z (2 months ago)
- Language: HCL
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# terraform-aws-ec2-instance
A terraform module that creates an EC2 instance according to best practices. At this time, the meaning of _best practices_ is limited to enabling SSM support.
## Outputs
Supported module outputs are:
1. `instance_iam_role` (string)
1. `instance_id` (string)
1. `instance_private_ip` (string)## Usage
```
data "aws_ami" "bitnami-mongodb" {
most_recent = truefilter {
name = "name"
values = ["bitnami-mongodb-4.0.2-0-linux-ubuntu-16.04-x86_64-hvm-ebs-mp-*"]
}owners = ["679593333241"] # Bitnami
}module "mongodb" {
source = "github.com/seanscottking/terraform-aws-ec2-instance.git"ami = "${data.aws_ami.bitnami-mongodb.id}"
type = "t2.micro"
subnet_id = "${element(module.vpc.private_subnet_ids["private"],0)}"
userdata = "${data.template_file.mongodb-firstboot.rendered}"
vpc_security_group_ids = ["${module.vpc.default_security_group_id}"]tags = {
Name = "${local.name_tag}-mongodb"
}
}
```