Complete the code to specify the cloud provider as AWS.
provider "[1]" {}
The provider block tells Terraform which cloud provider to use. Here, aws is the correct provider name for Amazon Web Services.
Complete the code to set the AWS region to us-west-2.
provider "aws" { region = "[1]" }
The region attribute sets the AWS region where resources will be created. us-west-2 is the correct region code for Oregon.
Fix the error in the provider block by completing the missing attribute name.
provider "aws" { [1] = "us-east-1" }
The correct attribute to specify the AWS location is region. Other options are invalid and cause errors.
Fill both blanks to configure the AWS provider with region us-east-1 and profile default.
provider "aws" { [1] = "us-east-1" [2] = "default" }
The region attribute sets the AWS region, and profile specifies the AWS CLI profile to use for credentials.
Fill all three blanks to configure the AWS provider with region us-west-1, profile admin, and enable shared credentials file.
provider "aws" { [1] = "us-west-1" [2] = "admin" [3] = true }
region sets the AWS region, profile selects the AWS CLI profile, and use_shared_credentials_file enables using the shared credentials file for authentication.