kazhala / terraform-aws-ec2-ubuntu

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

terraform-aws-ec2-ubuntu

Requirements

Name Version
terraform >= 0.14
archive >= 2.0
aws >= 3.0
random >= 3.0

Providers

Name Version
archive 2.2.0
aws 3.56.0
random 3.1.0

Modules

No modules.

Resources

Name Type
aws_cloudwatch_event_rule.lambda_start resource
aws_cloudwatch_event_rule.lambda_stop resource
aws_cloudwatch_event_target.lambda_start resource
aws_cloudwatch_event_target.lambda_stop resource
aws_iam_instance_profile.this resource
aws_iam_role.ec2 resource
aws_iam_role.lambda resource
aws_iam_role_policy.lambda resource
aws_iam_role_policy_attachment.cloudwatch resource
aws_iam_role_policy_attachment.ec2 resource
aws_instance.this resource
aws_lambda_function.start resource
aws_lambda_function.stop resource
aws_lambda_permission.lambda_start resource
aws_lambda_permission.lambda_stop resource
aws_security_group.this resource
aws_security_group_rule.inbound_self resource
aws_security_group_rule.inbound_ssh resource
aws_security_group_rule.outbound_all resource
aws_sns_topic.this resource
aws_sns_topic_subscription.this resource
random_id.lambda resource
archive_file.lambda_start data source
archive_file.lambda_stop data source
aws_iam_policy_document.ec2_assume_role data source
aws_iam_policy_document.lambda_assume_role data source
aws_iam_policy_document.lambda_permission data source
aws_ssm_parameter.ami data source

Inputs

Name Description Type Default Required
ami The ID of the AMI to launch the EC2 instance. string null no
cidr_block CIDR block for the VPC. string "10.0.0.0/16" no
email Email address to receive notificaiton. string null no
enable_auto_start Enable EC2 auto start based on schedule. bool true no
enable_auto_stop Enable EC2 auto stop based on schedule. bool true no
instance_password The password of the instance. string n/a yes
instance_permission_policies List of instance permission policy ARNs. list(string)
[
"arn:aws:iam::aws:policy/AdministratorAccess"
]
no
instance_type The Instance Type to use. string "t3.medium" no
ip_addresses Office and Home IP addresses. list(string) [] no
name Default name for the resources. string n/a yes
start_schedule Instance start cron schedule expression. string null no
stop_schedule Instance stop cron schedule expression. string null no
subnet_id Subnet to deploy the EC2 instance. Required if vpc_id is set. string n/a yes
tags Additional resource tags to apply to applicable resources. Format: {"key" = "value"}. map(string) {} no
time_zone Current timezone. Allowed values: AEDT | AEST. string "AEST" no
volume_size Volume size for the EC2 instance. number 30 no
vpc_id VPC to deploy the EC2 instance. Required if subnet_id is set. string n/a yes

Outputs

Name Description
aws_iam_role IAM roles deployed.
aws_instance Outputs of the EC2 instance.
aws_lambda_function Lambda automation deployed.
aws_security_group Security group deployed for the instance.

About

License:MIT License


Languages

Language:HCL 93.3%Language:Python 6.7%