Last active
June 15, 2021 13:20
-
-
Save AndrewFarley/80e9bc8bf0c9dbe486ac399ede64d973 to your computer and use it in GitHub Desktop.
A file useful for CloudTrail or Guardduty to be able to iterate on all the AWS Regions easily
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# List of all (public) AWS regions as of Jun 15, 2021 | |
locals { | |
aws_regions_list = [ | |
"ap-northeast-1", | |
"ap-northeast-2", | |
"ap-northeast-3", | |
"ap-south-1", | |
"ap-southeast-1", | |
"ap-southeast-2", | |
"ca-central-1", | |
"eu-central-1", | |
"eu-north-1", | |
"eu-west-1", | |
"eu-west-2", | |
"eu-west-3", | |
"sa-east-1", | |
"us-east-2", | |
"us-west-1", | |
"us-west-2", | |
] | |
} | |
provider "aws" { | |
region = "ap-northeast-1" | |
alias = "ap-northeast-1" | |
# Make it faster by skipping something | |
skip_get_ec2_platforms = true | |
skip_metadata_api_check = true | |
skip_region_validation = true | |
skip_credentials_validation = true | |
skip_requesting_account_id = true | |
} | |
provider "aws" { | |
region = "ap-northeast-2" | |
alias = "ap-northeast-2" | |
# Make it faster by skipping something | |
skip_get_ec2_platforms = true | |
skip_metadata_api_check = true | |
skip_region_validation = true | |
skip_credentials_validation = true | |
skip_requesting_account_id = true | |
} | |
provider "aws" { | |
region = "ap-northeast-3" | |
alias = "ap-northeast-3" | |
# Make it faster by skipping something | |
skip_get_ec2_platforms = true | |
skip_metadata_api_check = true | |
skip_region_validation = true | |
skip_credentials_validation = true | |
skip_requesting_account_id = true | |
} | |
provider "aws" { | |
region = "ap-south-1" | |
alias = "ap-south-1" | |
# Make it faster by skipping something | |
skip_get_ec2_platforms = true | |
skip_metadata_api_check = true | |
skip_region_validation = true | |
skip_credentials_validation = true | |
skip_requesting_account_id = true | |
} | |
provider "aws" { | |
region = "ap-southeast-1" | |
alias = "ap-southeast-1" | |
# Make it faster by skipping something | |
skip_get_ec2_platforms = true | |
skip_metadata_api_check = true | |
skip_region_validation = true | |
skip_credentials_validation = true | |
skip_requesting_account_id = true | |
} | |
provider "aws" { | |
region = "ap-southeast-2" | |
alias = "ap-southeast-2" | |
# Make it faster by skipping something | |
skip_get_ec2_platforms = true | |
skip_metadata_api_check = true | |
skip_region_validation = true | |
skip_credentials_validation = true | |
skip_requesting_account_id = true | |
} | |
provider "aws" { | |
region = "ca-central-1" | |
alias = "ca-central-1" | |
# Make it faster by skipping something | |
skip_get_ec2_platforms = true | |
skip_metadata_api_check = true | |
skip_region_validation = true | |
skip_credentials_validation = true | |
skip_requesting_account_id = true | |
} | |
provider "aws" { | |
region = "eu-central-1" | |
alias = "eu-central-1" | |
# Make it faster by skipping something | |
skip_get_ec2_platforms = true | |
skip_metadata_api_check = true | |
skip_region_validation = true | |
skip_credentials_validation = true | |
skip_requesting_account_id = true | |
} | |
provider "aws" { | |
region = "eu-north-1" | |
alias = "eu-north-1" | |
# Make it faster by skipping something | |
skip_get_ec2_platforms = true | |
skip_metadata_api_check = true | |
skip_region_validation = true | |
skip_credentials_validation = true | |
skip_requesting_account_id = true | |
} | |
provider "aws" { | |
region = "eu-west-1" | |
alias = "eu-west-1" | |
# Make it faster by skipping something | |
skip_get_ec2_platforms = true | |
skip_metadata_api_check = true | |
skip_region_validation = true | |
skip_credentials_validation = true | |
skip_requesting_account_id = true | |
} | |
provider "aws" { | |
region = "eu-west-2" | |
alias = "eu-west-2" | |
# Make it faster by skipping something | |
skip_get_ec2_platforms = true | |
skip_metadata_api_check = true | |
skip_region_validation = true | |
skip_credentials_validation = true | |
skip_requesting_account_id = true | |
} | |
provider "aws" { | |
region = "eu-west-3" | |
alias = "eu-west-3" | |
# Make it faster by skipping something | |
skip_get_ec2_platforms = true | |
skip_metadata_api_check = true | |
skip_region_validation = true | |
skip_credentials_validation = true | |
skip_requesting_account_id = true | |
} | |
provider "aws" { | |
region = "sa-east-1" | |
alias = "sa-east-1" | |
# Make it faster by skipping something | |
skip_get_ec2_platforms = true | |
skip_metadata_api_check = true | |
skip_region_validation = true | |
skip_credentials_validation = true | |
skip_requesting_account_id = true | |
} | |
provider "aws" { | |
region = "us-east-1" | |
alias = "us-east-1" | |
# Make it faster by skipping something | |
skip_get_ec2_platforms = true | |
skip_metadata_api_check = true | |
skip_region_validation = true | |
skip_credentials_validation = true | |
skip_requesting_account_id = true | |
} | |
provider "aws" { | |
region = "us-east-2" | |
alias = "us-east-2" | |
# Make it faster by skipping something | |
skip_get_ec2_platforms = true | |
skip_metadata_api_check = true | |
skip_region_validation = true | |
skip_credentials_validation = true | |
skip_requesting_account_id = true | |
} | |
provider "aws" { | |
region = "us-west-1" | |
alias = "us-west-1" | |
# Make it faster by skipping something | |
skip_get_ec2_platforms = true | |
skip_metadata_api_check = true | |
skip_region_validation = true | |
skip_credentials_validation = true | |
skip_requesting_account_id = true | |
} | |
provider "aws" { | |
region = "us-west-2" | |
alias = "us-west-2" | |
# Make it faster by skipping something | |
skip_get_ec2_platforms = true | |
skip_metadata_api_check = true | |
skip_region_validation = true | |
skip_credentials_validation = true | |
skip_requesting_account_id = true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment