Create an EC2 Instance with Terraform: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
No edit summary
Line 17: Line 17:
}
}
</syntaxhighlight>
</syntaxhighlight>
=Configuration Details=
==Public IP==
If nothing is specified, the instance will get a public IP.

Revision as of 21:19, 13 November 2019

Internal

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.