ec2-application
davidalger/ec2-application/aws
AWS EC2 Application Terraform Module
Install
README
AWS EC2 Application Terraform Module Deploys and configures an EC2 instance running CentOS 7 with an EBS volume mounted at /data00 for persistent storage (beyond instance recreation) and automatic mounting and formatting of any present scratch (local ephemeral storage) aka "NVMe Instance Storage" devices. This module can leverage either a specified key name (authorized on default centos user) for manual provisioning after setup, or using various parameters to extend the cloud-init Ansible might be used (for example) to run a provisioning playbook on the device when it first boots. This module currently only supports Nitro/NVMe instance types such as m5.large, m5ad.4xlarge, or z1d.large, t3.medium, etc. This is due to reliance on /dev/disk/by-id/nvme-Amazon_Elastic_Block_Store_vol alias to
Inputs (16)
| Name | Type | Description | Default |
|---|---|---|---|
| instance_type | string | required | |
| tags | map(string) | required | |
| vpc_id | string | required | |
| subnet_id | string | required | |
| name | string | required | |
| key_name | string | "" | |
| ebs_volume_size | number | 150 | |
| instance_bootcmd | list(string) | [] | |
| instance_runcmd | list(string) | [] | |
| instance_users | list(any) | [] | |
| instance_files | list(map(string)) | [] | |
| security_groups | list(string) | Additional security groups to attach to the instance. | [] |
| instance_groups | list(string) | [] | |
| instance_packages | list(string) | [] | |
| ebs_device_name | string | "/dev/sdf" | |
| trusted_ip_ranges | list(string) | List of IP ranges to whitelist for ICMP and SSH ingress. | [
"0.0.0.0/0"
] |
Outputs (4)
instance_nameinstance_addressinstance_idinstance_arnResources (5)
Topics & Tags
Details
Similar packages
Terraform module to deploy landing zone subscriptions (and much more) in Azure
Terraform Azure Verified Pattern Module for Azure Landing Zone
Terraform Azure Verified Resource Module for Key Vault
Terraform module for building and deploying Next.js apps to AWS. Supports SSR (L