You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add cross-account VPC origin support to CloudFront distribution
Fixes#45011
AWS released cross-account VPC Origins for CloudFront on November 7, 2025.
The CloudFront API requires the OwnerAccountId field when referencing a
VPC origin from a different account. Without this parameter, Terraform
returns 404 EntityNotFound even when the VPC origin is properly shared via RAM.
Changes:
- Add owner_account_id field to vpc_origin_config schema (Optional, Computed)
- Update expandVPCOriginConfig to include OwnerAccountId when provided
- Update flattenVPCOriginConfig to read OwnerAccountId from API response
- Add acceptance test TestAccCloudFrontDistribution_vpcOriginConfigOwnerAccountID
- Update documentation
Backward compatible: When owner_account_id is omitted, CloudFront uses
the distribution's account.
Copy file name to clipboardExpand all lines: website/docs/r/cloudfront_distribution.html.markdown
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -568,6 +568,7 @@ argument should not be specified.
568
568
569
569
*`origin_keepalive_timeout` - (Optional) Specifies how long, in seconds, CloudFront persists its connection to the origin. The minimum timeout is 1 second, the maximum is 60 seconds. Defaults to `5`.
570
570
*`origin_read_timeout` - (Optional) Specifies how long, in seconds, CloudFront waits for a response from the origin. This is also known as the _origin response timeout_. The minimum timeout is 1 second, the maximum is 60 seconds. Defaults to `30`.
571
+
*`owner_account_id` - (Optional) The AWS account ID that owns the VPC origin. Required when referencing a VPC origin from a different AWS account for cross-account VPC origin access.
0 commit comments