Terraform AWS Provider: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
=External= | =External= | ||
* https://www.terraform.io/docs/providers/aws/index.html | |||
* https://learn.hashicorp.com/terraform/getting-started/build#configuration | * https://learn.hashicorp.com/terraform/getting-started/build#configuration | ||
=Internal= | =Internal= | ||
* [[Terraform_Concepts#AWS|Terraform Concepts]] | * [[Terraform_Concepts#AWS|Terraform Concepts]] | ||
Line 19: | Line 20: | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=Concepts= | |||
==Authentication== | |||
{{External|[https://www.terraform.io/docs/providers/aws/index.html#authentication AWS Provider 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]}} | |||
The base EC2 instance must be started with an [[Amazon_AWS_Security_Concepts#Instance_Profile|instance profile]] that carries the appropriate [[Amazon_AWS_Security_Concepts#AWS_Service_Role_for_an_EC2_Instance|EC2 service role]], and have access to temporary credentials. The concepts involved and a step-by-step setup procedure are available here: | |||
{{Internal|Amazon_AWS_Security_Concepts#AWS_Service_Role_for_an_EC2_Instance|AWS Service Role for an EC2 Instance}} | |||
=Operations= | =Operations= | ||
{{Internal|Terraform AWS Operations|Terraform AWS Operations}} | {{Internal|Terraform AWS Operations|Terraform AWS Operations}} |
Latest revision as of 22:48, 19 November 2019
External
- https://www.terraform.io/docs/providers/aws/index.html
- https://learn.hashicorp.com/terraform/getting-started/build#configuration
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
Using AWS Service Roles for EC2 Instances and Instance Profile
The base EC2 instance must be started with an instance profile that carries the appropriate EC2 service role, and have access to temporary credentials. The concepts involved and a step-by-step setup procedure are available here: