Access of the Application

0

Hey,

I have actually developed an application & deployed it on AWS cloud using the required resources. I have created a path based routing policies for my application using API Gateway Regional API end-point configurations. My application is hosted from AWS Amplify's cloud front distribution. So my problem here is that i want my application to be accessed from few known regions but not from everywhere. Out of my research i got to know that i had to create a AWS WAF & attach it to application's cloud front. Since my application is hosted through amplify's cloud front distribution i'm unable to attach WAF. so how can find amplify hosted cloud front distribution ID. i have tried every method that i'm aware of & unfortunately i couldn't be able to get it. Let me know if this is the right way to configure my application.

1 Answer
0

Hello.

As you are aware, as of August 2024, it is not possible to attach AWS WAF directly to Amplify.
Therefore, you can use it by creating a custom CloudFront, setting Amplify as the origin, and linking AWS WAF to the custom CloudFront.
https://github.com/aws-samples/aws-cdk-amplify-with-waf

profile picture
EXPERT
answered 9 months ago

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