AWS AMPLIFY WAF

0

Dear all,

i have hosted a nextjs based webapp on aws amplify i want to implement waf for this ,based on the some of the links it says to find cloudfront distribution in cloudfront console and implement WAF,but my aws amplify app is hosted in bahrain ,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,

what can i do implement waf for this aws amplify app

1 Answer
1

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.

profile picture
EXPERT
answered a month ago
profile picture
EXPERT
reviewed a month ago
profile picture
EXPERT
reviewed a month 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.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions