Skip to content

rafaelonline/terraform-aws-ec2-instance

Repository files navigation

AWS EC2 Instance Terraform module

Módulo Terraform para criar instancias EC2 na AWS

Exemplo de utilização

  • Consulte o diretório Exemplo.

Requirements

Name Version
terraform >= 0.12.0
aws >= 3.1.15

Providers

Name Version
aws >= 3.1.15

Modules

No modules.

Resources

Name Type
aws_eip.default resource
aws_instance.default resource

Inputs

Name Description Type Default Required
ami ID of AMI to use for the instance string n/a yes
associate_public_ip_address If true, the EC2 instance will have associated public IP address bool false no
ebs_block_device Additional EBS block devices to attach to the instance list(map(string)) [] no
ec2keys The key name to use for the instance string n/a yes
get_password_data If true, wait for password data to become available and retrieve it. bool false no
iam_instance_profile The IAM Instance Profile to launch the instance with. string "" no
instance_type The type of instance to launch string n/a yes
instances_number Number of EC2 instances to launch number 1 no
instances_subnet A list of VPC Subnet IDs to launch in list(string) n/a yes
kms_key KMS Key to use when encrypting the volume string "" no
root_iops Amount of provisioned IOPS number 3000 no
root_throughput Throughput to provision for a volume in mebibytes per second (MiB/s) number 125 no
root_volume_size Size of the volume in gibibytes (GiB) string n/a yes
root_volume_type Type of volume string "gp3" no
security_group A list of security group IDs to associate with list(string) n/a yes
tags A mapping of tags to assign to the resource map(string) n/a yes
user_data_base64 The user data to provide when launching the instance. string "" no

Outputs

Name Description
instace_private_ip The IP Private of the Instances.
instace_public_ip The IP Public of the Instances.
instance_id List of IDs of instances
password_data List of Base-64 encoded encrypted password data for the instance

Licença

Este projeto está licenciado sob a licença Apache 2.0

About

Módulo Terraform para criar instancias EC2 na AWS

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages