- Newest
- Most votes
- Most comments
Hello.
AWS Amplify currently cannot directly configure AWS WAF.
Therefore, as introduced on GitHub below, you need to create your own CloudFront to be placed in front of AWS Amplify and configure AWS WAF for CloudFront.
https://github.com/aws-samples/aws-cdk-amplify-with-waf
iam not able to see the distribution in cloudfront since is changing to global ,but all other distribution which is created directly on cloudfront console for bahrain region are listing,
By the way, CloudFront is a global resource, so it doesn't matter if it's in the Bahrain region.
You can now directly associate an AWS WAF WebACL to your AWS Amplify apps through a one-click integration in the Amplify console or using infrastructure as code (IaC) - see Firewall support for AWS Amplify hosted sites.
Relevant content
asked 4 years ago
asked 4 years ago
asked 3 years ago
asked 2 years ago
- AWS OFFICIALUpdated a year ago

thanks will look in to the repo,so the distribution that is created for aws amplify will not show in the distribution console of cloudfront
You need to create a CloudFront with Amplify as the origin from the management console. This means that you must use your own CloudFront rather than the one created by Amplify.