01 - Terraform Basic II

 

 

 


allowed_account_ids

 

List of allowed AWS account IDs to prevent you from mistakenly using an incorrect one.

provider "aws" {
  region                   = "ap-east-1"
  allowed_account_ids = var.allowed_account_ids
  ...
}

"terraform apply" 時 Output

Error: AWS account ID not allowed: YOUR_CURRENT_ID

 


 

Creative Commons license icon Creative Commons license icon