Esri / arcgis-gitops

GitHub Actions workflows for ArcGIS Enterprise deployment and operation
Apache License 2.0
6 stars 1 forks source link

Add an abstraction layer for retrieving core resources Ids #127

Closed pbobov closed 1 month ago

pbobov commented 1 month ago

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.

pbobov commented 1 month ago

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.