Skip to content

feat(cloudfront-origins): add owner account id support for cross account vpc origins#36936

Open
kawaaaas wants to merge 2 commits intoaws:mainfrom
kawaaaas:feature/add-owner-account-id-support-for-cross-account-vpc-origins
Open

feat(cloudfront-origins): add owner account id support for cross account vpc origins#36936
kawaaaas wants to merge 2 commits intoaws:mainfrom
kawaaaas:feature/add-owner-account-id-support-for-cross-account-vpc-origins

Conversation

@kawaaaas
Copy link

Issue # (if applicable)

Closes #36935.

Reason for this change

In multi-account architectures, VPC origin resources often reside in a different account from the CloudFront distribution. Without the ownerAccountId property, users must use escape hatches to set OwnerAccountId on the origin configuration.

Description of changes

  • Added ownerAccountId as an optional string property to VpcOriginProps.
  • Added validation to ensure the value is a 12-digit AWS account ID (when the value is not a token).
  • Added a cross-account usage example to the README.

Describe any new or updated permissions being added

None

Description of how you validated changes

unit tests

Checklist


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@aws-cdk-automation aws-cdk-automation requested a review from a team February 10, 2026 18:06
@github-actions github-actions bot added feature-request A feature should be added or improved. p2 beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK labels Feb 10, 2026
Copy link
Collaborator

@aws-cdk-automation aws-cdk-automation left a comment

Choose a reason for hiding this comment

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

The pull request linter fails with the following errors:

❌ Features must contain a change to an integration test file and the resulting snapshot.

If you believe this pull request should receive an exemption, please comment and provide a justification. A comment requesting an exemption should contain the text Exemption Request. Additionally, if clarification is needed, add Clarification Request to a comment.

@kawaaaas kawaaaas marked this pull request as ready for review February 12, 2026 23:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK feature-request A feature should be added or improved. p2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(cloudfront-origins): add ownerAccountId support for cross-account VPC origins

2 participants