![Apache-2.0 license](https://camo.githubusercontent.com/50ab907fde5074b1686e81a72b24354e45e0d8c94865a8717ba776bf5f160b76/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4170616368652d627269676874677265656e2e737667)
terraform-aws-sandbox-ec2-module
This terraform module creates a basic EC2 instance on AWS to be used a test bed.
No modules.
Name |
Description |
Type |
Default |
Required |
ec2_instance_type |
EC2 Instance type to be used e.g. t2.micro |
string |
n/a |
yes |
egress_security_groups |
Valid egress security group rules for the instance |
list(object({ description = string port = number protocol = string cidr_blocks = list(string) })) |
n/a |
yes |
ingress_security_groups |
Valid ingress security group rules for the instance |
list(object({ description = string port = number protocol = string cidr_blocks = list(string) })) |
n/a |
yes |
policy_name |
Name for the EC2 IAM role and instance profile |
string |
n/a |
yes |
public_key_path |
Path to the SSH public key file |
string |
n/a |
yes |
region |
The AWS region the IaC will be deployed to |
string |
n/a |
yes |
tags |
Tags for AWS resources |
map(string) |
n/a |
yes |
user_data_file_path |
Path to the user data file used to initialise the instance |
string |
n/a |
yes |
This code is open sourced licensed under the Apache 2.0 License