Terraform module: ec2-instance
(Redirected from Terraform EC2 instance module)
Jump to navigation
Jump to search
Module: https://registry.terraform.io/modules/terraform-aws-modules/ec2-instance/aws/latest?tab=inputs
Resources:
aws_instance.this
aws_spot_instance_request.this
module "ec2_instance" { source = "terraform-aws-modules/ec2-instance/aws" version = "~> 3.0" name = "single-instance" ami = "ami-ebd02392" instance_type = "t2.micro" key_name = "user1" monitoring = true vpc_security_group_ids = ["sg-12345678"] subnet_id = "subnet-eddcdzz4" tags = { Terraform = "true" Environment = "dev" } }
Related
Terraform resource: aws_instance
- Terraform: AWS instance example with aws ami lookup and key name
ebs_block_device
- metadata_options Default: { "http_endpoint": "enabled", "http_put_response_hop_limit": 1, "http_tokens": "optional" }
See also
- Terraform EC2 resources:
aws_instance, aws_ebs_volume, aws_volume_attachment, aws_ec2_tag
, Terraform module:ec2-instance
,ebs_block_device
,argument/input
- Terraform resources, Terraform providers, Terraform provisioner,
random_password, random_string, null_resource
- Terraform AWS resources: IAM, Net, EC2, ECS, ECR, S3, Route53, ACM, CloudWatch, CloudFront SES, RDS, DLM
Advertising: