This terraform module creates a basic EC2 instance on AWS to be used a test bed.
Name | Version |
---|---|
terraform | >=1.0.8 |
aws | >=3.62.0 |
Name | Version |
---|---|
aws | 3.62.0 |
No modules.
Name | Type |
---|---|
aws_default_subnet.default_subnet_a | resource |
aws_eip.sandbox_instance | resource |
aws_iam_instance_profile.default_instance_profile | resource |
aws_iam_role.default_role | resource |
aws_instance.sandbox_instance | resource |
aws_key_pair.ssh | resource |
aws_security_group.egress | resource |
aws_security_group.ingress | resource |
aws_ami.amazon_linux_2 | data source |
aws_iam_policy_document.default_policy_document | data source |
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({ |
n/a | yes |
ingress_security_groups | Valid ingress security group rules for the instance | list(object({ |
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 |
Name | Description |
---|---|
instance_profile_name | n/a |
policy_name | n/a |
This code is open sourced licensed under the Apache 2.0 License