Terraform AWS Provider
Jump to navigation
Jump to search
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: