Create an EC2 Instance with Terraform: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 5: Line 5:
* [[Amazon_EC2_Operations#Create_an_EC2_Instance_with_Terraform|Amazon EC2 Operations]]
* [[Amazon_EC2_Operations#Create_an_EC2_Instance_with_Terraform|Amazon EC2 Operations]]
* [[Terraform AWS Operations#Create_an_EC2_Instance|Terraform AWS Operations]]
* [[Terraform AWS Operations#Create_an_EC2_Instance|Terraform AWS Operations]]
=Overview=
EC2 instances can be created, updated and deleted. Instances also support [[Terraform_Concepts#Provisioning|provisioning]].


=Configuration=
=Configuration=

Revision as of 21:35, 13 November 2019

External

Internal

Overview

EC2 instances can be created, updated and deleted. Instances also support provisioning.

Configuration

provider "aws" {

  profile = "default"
  region = "us-west-2"
}

resource "aws_instance" "terraform-test-01" {

  ami           = "ami-a6faba49dddaecfb7"
  instance_type = "m5.4xlarge"
}

Configuration Details

Public IP

If nothing is specified, the instance will get a public IP.