Skip to content

Commit

Permalink
Remove originAccessIdentityName
Browse files Browse the repository at this point in the history
  • Loading branch information
biffgaut committed Feb 7, 2023
1 parent a5513fb commit 466bded
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export class CloudFrontToMediaStore extends Construct {
Resource: `arn:${Aws.PARTITION}:mediastore:${Aws.REGION}:${Aws.ACCOUNT_ID}:container/${Aws.STACK_NAME}/*`,
Condition: {
StringEquals: {
'aws:UserAgent': this.cloudFrontOriginAccessIdentity.originAccessIdentityName
'aws:UserAgent': this.cloudFrontOriginAccessIdentity.originAccessIdentityId
},
Bool: {
'aws:SecureTransport': 'true'
Expand All @@ -127,7 +127,7 @@ export class CloudFrontToMediaStore extends Construct {
};

const userAgentHeader: Record<string, string> = {
'User-Agent': this.cloudFrontOriginAccessIdentity.originAccessIdentityName
'User-Agent': this.cloudFrontOriginAccessIdentity.originAccessIdentityId
};

if (cloudFrontDistributionProps) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ test('CloudFront distribution for MediaStore with user provided custom headers w
const cloudfrontOriginAccessIdentity = CloudFrontOriginAccessIdentity(stack);
const cfProps = {
customHeaders: {
'User-Agent': cloudfrontOriginAccessIdentity.originAccessIdentityName
'User-Agent': cloudfrontOriginAccessIdentity.originAccessIdentityId
}
};

Expand Down

0 comments on commit 466bded

Please sign in to comment.