Skip to content

Chore: [AEA-6593] - move to new imports#2601

Merged
anthony-nhs merged 9 commits intomainfrom
move_to_new_imports
May 1, 2026
Merged

Chore: [AEA-6593] - move to new imports#2601
anthony-nhs merged 9 commits intomainfrom
move_to_new_imports

Conversation

@anthony-nhs
Copy link
Copy Markdown
Collaborator

Summary

  • Routine Change

Details

  • use export from cdk stack

Copilot AI review requested due to automatic review settings April 27, 2026 14:55
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates SAM templates to consume shared infrastructure exports from the newer CDK-based stacks (replacing older account-resources / lambda-resources import names).

Changes:

  • Repointed CloudWatch Logs KMS key, Splunk subscription role, and Splunk Firehose delivery stream imports to account-resources-cdk-uk:* exports.
  • Updated various IAM managed policy imports (Lambda + Step Functions) to the new export names.
  • Updated Slack alerts SNS topic imports for CloudWatch alarms to the new export name.

Reviewed changes

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

Show a summary per file
File Description
SAMtemplates/state_machines/state_machine_resources.yaml Updates state machine IAM managed policy import to the new CDK export.
SAMtemplates/state_machines/main.yaml Updates parameters passed to the nested state machine resources app (KMS + Splunk imports).
SAMtemplates/sandbox_template.yaml Updates sandbox nested apps and API log group/Splunk subscription imports to the new CDK exports (including truststore bucket import).
SAMtemplates/functions/main.yaml Updates Spine + logging/Splunk-related imports to new CDK/secrets exports.
SAMtemplates/functions/lambda_resources.yaml Updates lambda role managed policy imports (one import value appears malformed).
SAMtemplates/apis/api_resources.yaml Updates API access log group KMS key and Splunk subscription imports to new CDK exports.
SAMtemplates/alarms/main.yaml Updates Slack alert SNS topic imports to the new CDK export.

- !ImportValue account-resources:CloudwatchEncryptionKMSPolicyArn
- !ImportValue account-resources:LambdaDecryptSecretsKMSPolicy
- !ImportValue account-resources-cdk-uk:IAM:LambdaInsightsLogGroupPolicy:Arn
- !ImportValue account-resources-cdk-uk::IAM:CloudwatchEncryptionKMSPolicy:Arn
Copy link

Copilot AI Apr 27, 2026

Choose a reason for hiding this comment

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

!ImportValue account-resources-cdk-uk::IAM:CloudwatchEncryptionKMSPolicy:Arn contains a double colon (cdk-uk::IAM) which will make the ImportValue name invalid and cause the stack to fail to deploy. Update it to the correct export name (likely account-resources-cdk-uk:IAM:CloudwatchEncryptionKMSPolicy:Arn).

Suggested change
- !ImportValue account-resources-cdk-uk::IAM:CloudwatchEncryptionKMSPolicy:Arn
- !ImportValue account-resources-cdk-uk:IAM:CloudwatchEncryptionKMSPolicy:Arn

Copilot uses AI. Check for mistakes.
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 1, 2026

@anthony-nhs anthony-nhs merged commit f8be1af into main May 1, 2026
57 of 62 checks passed
@anthony-nhs anthony-nhs deleted the move_to_new_imports branch May 1, 2026 15:52
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.

3 participants