Skip to content

Update iam policies#304

Merged
pbobov merged 2 commits into
mainfrom
update_iam_policies
Jul 10, 2026
Merged

Update iam policies#304
pbobov merged 2 commits into
mainfrom
update_iam_policies

Conversation

@pbobov

@pbobov pbobov commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

This pull request updates both AWS and Azure workflow files to use ingress_id instead of deployment_id for identifying ingress resources, ensuring consistency and correctness in Terraform state management. Additionally, it updates IAM policies to grant the necessary SNS permissions for subscribing and unsubscribing.

Workflow improvements:

  • All enterprise-ingress workflows for AWS and Azure now use ingress_id instead of deployment_id to construct the Terraform state key, ensuring the correct resource is targeted during apply and destroy operations. (aws/arcgis-enterprise-core/workflows/enterprise-ingress-aws.yaml, aws/arcgis-enterprise-core/workflows/enterprise-ingress-aws-destroy.yaml, azure/arcgis-enterprise-core/workflows/enterprise-ingress-azure.yaml, azure/arcgis-enterprise-core/workflows/enterprise-ingress-azure-destroy.yaml) [1] [2] [3] [4]

IAM policy updates:

  • The ArcGISEnterpriseCore policy now allows the sns:Subscribe action, enabling subscription to SNS topics. (aws/iam-policies/ArcGISEnterpriseCore.json)
  • The ArcGISEnterpriseCoreDestroy policy now allows the sns:Unsubscribe action, supporting cleanup of SNS subscriptions during resource destruction. (aws/iam-policies/ArcGISEnterpriseCoreDestroy.json)

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request updates ArcGIS Enterprise ingress GitHub Actions workflows to construct Terraform backend state keys using ingress_id (instead of deployment_id) for more accurate targeting of ingress resources, and extends AWS IAM policies to allow SNS subscription lifecycle operations required by the Terraform monitoring resources.

Changes:

  • Update AWS and Azure enterprise-ingress workflows to read ingress_id from the Terraform var-file and use it in the backend state key.
  • Add sns:Subscribe to ArcGISEnterpriseCore IAM policy permissions.
  • Add sns:Unsubscribe to ArcGISEnterpriseCoreDestroy IAM policy permissions.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
azure/arcgis-enterprise-core/workflows/enterprise-ingress-azure.yaml Use ingress_id when building the Azure backend state key for ingress apply/plan.
azure/arcgis-enterprise-core/workflows/enterprise-ingress-azure-destroy.yaml Use ingress_id when building the Azure backend state key for ingress destroy.
aws/arcgis-enterprise-core/workflows/enterprise-ingress-aws.yaml Use ingress_id when building the S3 backend state key for ingress apply/plan.
aws/arcgis-enterprise-core/workflows/enterprise-ingress-aws-destroy.yaml Use ingress_id when building the S3 backend state key for ingress destroy.
aws/iam-policies/ArcGISEnterpriseCore.json Grant sns:Subscribe needed for creating SNS topic subscriptions.
aws/iam-policies/ArcGISEnterpriseCoreDestroy.json Grant sns:Unsubscribe needed for cleanup during destroy.

"sns:GetSubscriptionAttributes",
"sns:ListTagsForResource",
"sns:SetTopicAttributes",
"sns:Subscribe",
@pbobov
pbobov merged commit 1fe0da1 into main Jul 10, 2026
5 checks passed
@pbobov
pbobov deleted the update_iam_policies branch July 10, 2026 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants