Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions source/infrastructure/lib/components/api/rest-api-all.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,11 @@ export class RestApi extends ApiGatewayRestApi {
statement: {
ipSetReferenceStatement: {
arn: ipSet.attrArn,
ipSetForwardedIpConfig: {
headerName: "X-Forwarded-For",
fallbackBehavior: "NO_MATCH",
position: "FIRST",
},
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ export class CloudfrontUiApi extends Construct {
priceClass: PriceClass.PRICE_CLASS_ALL,
httpVersion: HttpVersion.HTTP2,
minimumProtocolVersion: SecurityPolicyProtocol.TLS_V1_2_2019,
enableIpv6: false,
Copy link
Author

@maniryu maniryu Aug 27, 2025

Choose a reason for hiding this comment

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

AWS::CloudFront::Distribution DistributionConfig - AWS CloudFormation
https://docs.aws.amazon.com/ja_jp/AWSCloudFormation/latest/TemplateReference/aws-properties-cloudfront-distribution-distributionconfig.html

In general, you should enable IPv6 if you have users on IPv6 networks who want to access your content. However, if you're using signed URLs or signed cookies to restrict access to your content, and if you're using a custom policy that includes the IpAddress parameter to restrict the IP addresses that can access your content, don't enable IPv6.

enableLogging: true,
logBucket: loggingBucket,
logIncludesCookies: true,
Expand Down