{"repo":"terraform-aws-modules/terraform-aws-ec2-instance","free":true,"listed":false,"github":"https://github.com/terraform-aws-modules/terraform-aws-ec2-instance","clone":"git clone https://github.com/terraform-aws-modules/terraform-aws-ec2-instance.git","description":"Terraform module to create AWS EC2 instance(s) resources 🇺🇦","language":"HCL","stars":810,"topics":["terraform-module","ec2-instance","aws-ec2","aws"],"license":"Apache-2.0","category":"deployment-docker-iac","readme_excerpt":"AWS EC2 Instance Terraform module Terraform module which creates an EC2 instance on AWS. Usage Single EC2 Instance Multiple EC2 Instance Spot EC2 Instance Examples - Complete EC2 instance - EC2 instance w/ private network access via Session Manager Make an encrypted AMI for use This module does not support encrypted AMI's out of the box however it is easy enough for you to generate one for use This example creates an encrypted image from the latest ubuntu 20.04 base image. Conditional creation The following combinations are supported to conditionally create resources: Notes - network interface can't be specified together with vpc security group ids , associate public ip address , subnet id . See complete example for details. - In regards to spot instances, you must grant the AWSServiceRoleForEC2Spot service-linked role access to any custom KMS keys, otherwise your spot request and instances will fail with bad parameters . You can see more details about why the request failed by using the awscli and aws ec2 describe-spot-instance-requests Requirements Name Version ------ --------- terraform = 1.5.7 aws = 6.37 Providers Name Version ------ --------- aws = 6.37 Modules No modules. Resources Name Type ------ ------ aws ebs volume.this resource aws ec2 tag.spot instance resource aws eip.this resource aws iam instance profile.this resource aws iam role.this resource aws iam role policy attachment.this resource aws instance.ignore ami resource aws instance.this resource aws security","default_branch":null,"files":null,"tree":[],"storefront":"/r/terraform-aws-modules","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/terraform-aws-modules/terraform-aws-ec2-instance/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}