aws/arcgis-site-core/infrastructure-core Terraform module creates core AWS resources, such as VPC and subnets, and stores the resource Ids in AWS Systems Manager parameters. Other Terraform modules retrieve the resource Ids from the parameter store using aws_ssm_parameter data sources using specific parameters naming convention.
To abstract retrieval of the core resources Ids and make it easy to customize (in the cases when the core resources are not created by infrastructure-core module), the retrieval of the core resources Ids should be encapsulated in a child Terraform module that will be used as an interface to core infrastructure from the deployments terraform modules.
Similar changes should be done for abstracting core Azure resources.
The fix adds to AWS and Azure templates child Terraform module "site_core_info" that retrieves ids of AWS/Azure resources created by arcgis-site-core/infrastructure-core modules.
aws/arcgis-site-core/infrastructure-core Terraform module creates core AWS resources, such as VPC and subnets, and stores the resource Ids in AWS Systems Manager parameters. Other Terraform modules retrieve the resource Ids from the parameter store using aws_ssm_parameter data sources using specific parameters naming convention.
To abstract retrieval of the core resources Ids and make it easy to customize (in the cases when the core resources are not created by infrastructure-core module), the retrieval of the core resources Ids should be encapsulated in a child Terraform module that will be used as an interface to core infrastructure from the deployments terraform modules.
Similar changes should be done for abstracting core Azure resources.