Skip to content

cjww-development/terraform-aws-sandbox-ec2-module

Repository files navigation

Apache-2.0 license

terraform-aws-sandbox-ec2-module

This terraform module creates a basic EC2 instance on AWS to be used a test bed.

Docs

Requirements

Name Version
terraform >=1.0.8
aws >=3.62.0

Providers

Name Version
aws 3.62.0

Modules

No modules.

Resources

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

Inputs

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

Outputs

Name Description
instance_profile_name n/a
policy_name n/a

License

This code is open sourced licensed under the Apache 2.0 License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages