Skip to content

(aws-cloudfront): EdgeFunction us-east-1 helper stack created in different account #12789

@danilobuerger

Description

@danilobuerger

When using a EdgeFunction inside a environment stack the us-east-1 helper stack is created in a different account (the one with the aws credentials)

Reproduction Steps

Use demo from https://docs.aws.amazon.com/cdk/api/latest/docs/aws-cloudfront-readme.html#lambdaedge
Created it inside environment stack (with account "A") and deploy with aws credentials of account "B".

What did you expect to happen?

us-east-1 helper stack should be deployed to account "A"

What actually happened?

us-east-1 helper stack is deployed to account "B"

Environment

  • CDK CLI Version : 1.85.0
  • Node.js Version: 15.4.0
  • Language (Version): TypeScript 4.1.3

This is 🐛 Bug Report

Metadata

Metadata

Assignees

Labels

@aws-cdk/aws-cloudfrontRelated to Amazon CloudFrontbugThis issue is a bug.effort/smallSmall work item – less than a day of effortin-progressThis issue is being actively worked on.p1

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions