Complete the code to specify the cloud provider in Terraform.
provider "aws" { region = "[1]" }
The region specifies where the cloud resources will be created. It must be a valid cloud region like us-west-2.
Complete the code to authenticate Terraform with the cloud provider.
provider "aws" { access_key = "[1]" }
The access_key is a credential string that Terraform uses to connect securely to the cloud provider's API.
Fix the error in the provider block to correctly specify the cloud API endpoint.
provider "aws" { endpoint = "[1]" }
The endpoint must point to the correct AWS service API URL for the region, such as the EC2 service in us-west-2.
Fill both blanks to configure Terraform to connect to the cloud API with region and profile.
provider "aws" { region = "[1]" profile = "[2]" }
The region sets the cloud location, and the profile selects the credentials stored locally for authentication.
Fill all three blanks to define a provider block with region, access key, and secret key for cloud API connection.
provider "aws" { region = "[1]" access_key = "[2]" secret_key = "[3]" }
The region sets where resources are created. The access_key and secret_key are credentials to authenticate Terraform with the cloud API.