Created
September 12, 2022 14:37
-
-
Save hoo29/5f394249ea5f3041c495443bd13e03c4 to your computer and use it in GitHub Desktop.
Equivalent HCL for the CDKTF example.
This file contains 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
terraform { | |
backend "remote" { | |
organization = "org" | |
hostname = "hostname" | |
workspaces { | |
name = "hcl" | |
} | |
} | |
required_providers { | |
aws = { | |
source = "hashicorp/aws" | |
version = "~> 4" | |
} | |
} | |
} | |
provider "aws" { | |
region = "ap-northeast-1" | |
alias = "apn1" | |
} | |
provider "aws" { | |
region = "ap-northeast-2" | |
alias = "apn2" | |
} | |
provider "aws" { | |
region = "ap-southeast-1" | |
alias = "aps1" | |
} | |
provider "aws" { | |
region = "ap-south-1" | |
alias = "aps3" | |
} | |
provider "aws" { | |
region = "ca-central-1" | |
alias = "can1" | |
} | |
provider "aws" { | |
region = "eu-central-1" | |
alias = "euc1" | |
} | |
provider "aws" { | |
region = "eu-west-1" | |
alias = "euw1" | |
} | |
provider "aws" { | |
region = "eu-west-2" | |
alias = "euw2" | |
} | |
provider "aws" { | |
region = "eu-west-3" | |
alias = "euw3" | |
} | |
provider "aws" { | |
region = "sa-east-1" | |
alias = "sae1" | |
} | |
provider "aws" { | |
region = "us-east-1" | |
alias = "use1" | |
} | |
provider "aws" { | |
region = "us-east-2" | |
alias = "use2" | |
} | |
provider "aws" { | |
region = "us-west-1" | |
alias = "usw1" | |
} | |
provider "aws" { | |
region = "us-west-2" | |
alias = "usw2" | |
} | |
module "normal_hcl_module_apn1" { | |
source = "terraform_registry" | |
version = "1.0.0" | |
module_input_var = "a value" | |
providers = { | |
aws = aws.apn1 | |
} | |
} | |
module "normal_hcl_module_apn2" { | |
source = "terraform_registry" | |
version = "1.0.0" | |
module_input_var = "a value" | |
providers = { | |
aws = aws.apn2 | |
} | |
} | |
module "normal_hcl_module_aps1" { | |
source = "terraform_registry" | |
version = "1.0.0" | |
module_input_var = "a value" | |
providers = { | |
aws = aws.aps1 | |
} | |
} | |
module "normal_hcl_module_aps3" { | |
source = "terraform_registry" | |
version = "1.0.0" | |
module_input_var = "a value" | |
providers = { | |
aws = aws.aps3 | |
} | |
} | |
module "normal_hcl_module_can1" { | |
source = "terraform_registry" | |
version = "1.0.0" | |
module_input_var = "a value" | |
providers = { | |
aws = aws.can1 | |
} | |
} | |
module "normal_hcl_module_euc1" { | |
source = "terraform_registry" | |
version = "1.0.0" | |
module_input_var = "a value" | |
providers = { | |
aws = aws.euc1 | |
} | |
} | |
module "normal_hcl_module_euw1" { | |
source = "terraform_registry" | |
version = "1.0.0" | |
module_input_var = "a value" | |
providers = { | |
aws = aws.euw1 | |
} | |
} | |
module "normal_hcl_module_euw2" { | |
source = "terraform_registry" | |
version = "2.0.0" | |
module_input_var = "a value" | |
providers = { | |
aws = aws.euw2 | |
} | |
} | |
module "normal_hcl_module_euw3" { | |
source = "terraform_registry" | |
version = "1.0.0" | |
module_input_var = "a value" | |
providers = { | |
aws = aws.euw3 | |
} | |
} | |
module "normal_hcl_module_sae1" { | |
source = "terraform_registry" | |
version = "1.0.0" | |
module_input_var = "a value" | |
providers = { | |
aws = aws.sae1 | |
} | |
} | |
module "normal_hcl_module_use1" { | |
source = "terraform_registry" | |
version = "1.0.0" | |
module_input_var = "a value" | |
providers = { | |
aws = aws.use1 | |
} | |
} | |
module "normal_hcl_module_use2" { | |
source = "terraform_registry" | |
version = "1.0.0" | |
module_input_var = "a value" | |
providers = { | |
aws = aws.use2 | |
} | |
} | |
module "normal_hcl_module_usw1" { | |
source = "terraform_registry" | |
version = "1.0.0" | |
module_input_var = "a value" | |
providers = { | |
aws = aws.usw1 | |
} | |
} | |
module "normal_hcl_module_usw2" { | |
source = "terraform_registry" | |
version = "1.0.0" | |
module_input_var = "a value" | |
providers = { | |
aws = aws.usw2 | |
} | |
} | |
output "hcl_module_apn1" { | |
description = "Output for region apn1" | |
value = module.normal_hcl_module_apn1.module_output_name | |
} | |
output "hcl_module_apn2" { | |
description = "Output for region apn2" | |
value = module.normal_hcl_module_apn2.module_output_name | |
} | |
output "hcl_module_aps1" { | |
description = "Output for region aps1" | |
value = module.normal_hcl_module_aps1.module_output_name | |
} | |
output "hcl_module_aps3" { | |
description = "Output for region aps3" | |
value = module.normal_hcl_module_aps3.module_output_name | |
} | |
output "hcl_module_can1" { | |
description = "Output for region can1" | |
value = module.normal_hcl_module_can1.module_output_name | |
} | |
output "hcl_module_euc1" { | |
description = "Output for region euc1" | |
value = module.normal_hcl_module_euc1.module_output_name | |
} | |
output "hcl_module_euw1" { | |
description = "Output for region euw1" | |
value = module.normal_hcl_module_euw1.module_output_name | |
} | |
output "hcl_module_euw2" { | |
description = "Output for region euw2" | |
value = module.normal_hcl_module_euw2.module_output_name | |
} | |
output "hcl_module_euw3" { | |
description = "Output for region euw3" | |
value = module.normal_hcl_module_euw3.module_output_name | |
} | |
output "hcl_module_sae1" { | |
description = "Output for region sae1" | |
value = module.normal_hcl_module_sae1.module_output_name | |
} | |
output "hcl_module_use1" { | |
description = "Output for region use1" | |
value = module.normal_hcl_module_use1.module_output_name | |
} | |
output "hcl_module_use2" { | |
description = "Output for region use2" | |
value = module.normal_hcl_module_use2.module_output_name | |
} | |
output "hcl_module_usw1" { | |
description = "Output for region usw1" | |
value = module.normal_hcl_module_usw1.module_output_name | |
} | |
output "hcl_module_usw2" { | |
description = "Output for region usw2" | |
value = module.normal_hcl_module_usw2.module_output_name | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment