Terraform AWS Provider: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 24: Line 24:
==Authentication==
==Authentication==
{{External|https://www.terraform.io/docs/providers/aws/index.html#authentication}}
{{External|https://www.terraform.io/docs/providers/aws/index.html#authentication}}
===Using AWS Service Roles for EC2 Instances and Instance Profile===
{{External|[https://www.terraform.io/docs/providers/aws/index.html#ec2-role EC2 Role]}}
[[Amazon_AWS_Security_Concepts#AWS_Service_Role_for_an_EC2_Instance|AWS Service Role for an EC2 Instance]], [[Amazon_AWS_Security_Concepts#Instance_Profile|Instance Profile]].


=Operations=
=Operations=
{{Internal|Terraform AWS Operations|Terraform AWS Operations}}
{{Internal|Terraform AWS Operations|Terraform AWS Operations}}

Revision as of 18:01, 19 November 2019

External

Internal

Example

provider "aws" {

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

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

  ami           = "ami-06faba49dddaecfb6"
  instance_type = "m5.4xlarge"
}

Concepts

Authentication

https://www.terraform.io/docs/providers/aws/index.html#authentication

Using AWS Service Roles for EC2 Instances and Instance Profile

EC2 Role

AWS Service Role for an EC2 Instance, Instance Profile.

Operations

Terraform AWS Operations