Esri / arcgis-gitops

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

Set AWS region in config files instead of GitHub Actions variables #118

Closed pbobov closed 1 month ago

pbobov commented 2 months ago

Setting AWS region in config files:

  1. Allows using different regions for different deployments, and
  2. Prevents accidental deletion and recreation of ALL the resources if AWS_DEFAULT_REGION GitHub Actions variable is changed or deleted.
pbobov commented 1 month ago

The fix:

  1. Adds aws_region input variable to all Terraform modules and Packer templates.
  2. In GitHub actions workflows, sets aws_region input variable to the value of AWS_DEFAULT_REGION GitHub Actions variable.
  3. In GitHub actions workflows, sets azure_region input variable to the value of AZURE_DEFAULT_REGION GitHub Actions variable.

This supports different deployments in different AWS/Azure regions, if required.at the same time, it does not require setting regions in each config file, when all the deployments are in the same region, which is the typical case.