Complete the code to specify the AWS provider version.
provider "aws" { version = "~> [1]" }
The AWS provider version is set to "~> 5.0" to use the latest compatible 5.x version.
Complete the code to set the AWS region to us-west-2.
provider "aws" { region = "[1]" }
The region is set to "us-west-2" to deploy resources in the US West (Oregon) region.
Fix the error in the provider block by completing the missing argument.
provider "aws" { [1] = "us-east-1" }
The 'region' argument is required to specify where AWS resources will be created.
Fill both blanks to configure the AWS provider with a profile and region.
provider "aws" { [1] = "myprofile" [2] = "eu-west-1" }
The 'profile' sets the AWS CLI profile to use, and 'region' sets the AWS region.
Fill all three blanks to configure the AWS provider with region, profile, and enable shared credentials file.
provider "aws" { [1] = "ap-northeast-1" [2] = "devprofile" [3] = "~/.aws/credentials" }
'region' sets the AWS region, 'profile' selects the AWS CLI profile, and 'shared_credentials_file' enables using the shared credentials file by specifying its path.