Firewall assist for AWS Amplify hosted websites

Firewall assist for AWS Amplify hosted websites


Voiced by Polly

At the moment, we’re asserting the final availability of the AWS WAF integration with AWS Amplify Internet hosting.

Net software house owners are consistently working to guard their functions from a wide range of threats. Beforehand, in case you wished to implement a strong safety posture to your Amplify Hosted functions, you wanted to create architectures utilizing Amazon CloudFront distributions with AWS WAF safety, which required extra configuration steps, experience, and administration overhead.

With the final availability of AWS WAF in Amplify Internet hosting, now you can instantly connect an internet software firewall to your AWS Amplify apps via a one-click integration within the Amplify console or utilizing infrastructure as code (IaC). This integration provides you entry to the complete vary of AWS WAF capabilities together with managed guidelines, which give safety towards frequent internet exploits and vulnerabilities like SQL injection and cross-site scripting (XSS). You may as well create your individual customized guidelines based mostly in your particular software wants.

This new functionality helps you implement defense-in-depth safety methods to your internet functions. You may make the most of AWS WAF rate-based guidelines to guard towards distributed denial of service (DDoS) assaults by limiting the speed of requests from IP addresses. Moreover, you possibly can implement geo-blocking to limit entry to your functions from particular international locations, which is especially helpful in case your service is designed for particular geographic areas.

Let’s see the way it works
Organising AWS WAF safety to your Amplify app is easy. From the Amplify console, navigate to your app settings, choose the Firewall tab, and select the predefined guidelines you need to apply to your configuration. AWS WAF integration in AWS Amplify Hosting

Amplify internet hosting simplifies configuring firewall guidelines. You may activate 4 classes of safety.

  • Amplify-recommended firewall safety – Shield towards the most typical vulnerabilities present in internet functions, block IP addresses from potential threats based mostly on Amazon inner menace intelligence, and shield towards malicious actors discovering software vulnerabilities.
  • Limit entry to amplifyapp.com – Limit entry to the default Amplify generated amplifyapp.com area. That is helpful while you add a customized area to stop bots and serps from crawling the area.
  • Allow IP deal with safety – Limit internet site visitors by permitting or blocking requests from specified IP deal with ranges.
  • Allow nation safety – Limit entry based mostly on particular international locations.

Protections enabled via the Amplify console will create an underlying internet entry management checklist (ACL) in your AWS account. For fine-grained rulesets, you should utilize the AWS WAF console rule builder.

After a couple of minutes, the foundations are related to your app and AWS WAF blocks suspicious requests.

If you wish to see AWS WAF in motion, you possibly can simulate an assault and monitor it utilizing the AWS WAF request inspection capabilities. For instance, you possibly can ship a request with an empty Consumer-Agent worth. It is going to set off a blocking rule in AWS WAF.

Let’s first ship a legitimate request to my app.

curl -v -H "Consumer-Agent: MyUserAgent" https://major.d3sk5bt8rx6f9y.amplifyapp.com/
* Host major.d3sk5bt8rx6f9y.amplifyapp.com:443 was resolved.
...(redacted for brevity)...
> GET / HTTP/2
> Host: major.d3sk5bt8rx6f9y.amplifyapp.com
> Settle for: */*
> Consumer-Agent: MyUserAgent
> 
* Request fully despatched off
< HTTP/2 200 
< content-type: textual content/html
< content-length: 0
< date: Mon, 10 Mar 2025 14:45:26 GMT
 

We are able to observe that the server returned an HTTP 200 (OK) message.

Then, ship a request with no worth related to the Consumer-Agent HTTP header.

 curl -v -H "Consumer-Agent: " https://major.d3sk5bt8rx6f9y.amplifyapp.com/ 
* Host major.d3sk5bt8rx6f9y.amplifyapp.com:443 was resolved.
... (redacted for brevity) ...
> GET / HTTP/2
> Host: major.d3sk5bt8rx6f9y.amplifyapp.com
> Settle for: */*
> 
* Request fully despatched off
< HTTP/2 403 
< server: CloudFront
... (redacted for brevity) ...
ERROR: The request couldn't be glad


The request couldn't be glad.

We are able to observe that the server returned an HTTP 403 (Forbidden) message.

AWS WAF present visibility into request patterns, serving to you fine-tune your safety settings over time. You may entry logs via Amplify Internet hosting or the AWS WAF console to research site visitors traits and refine safety guidelines as wanted.

AWS WAF integration in AWS Amplify Hosting - Dashboard

Availability and pricing
Firewall assist is on the market in all AWS Areas wherein Amplify Internet hosting operates. This integration falls beneath an AWS WAF world useful resource, much like Amazon CloudFront. Net ACLs could be hooked up to a number of Amplify Internet hosting apps, however they need to reside in the identical Area.

The pricing for this integration follows the usual AWS WAF pricing mannequin, You pay for the AWS WAF assets you employ based mostly on the variety of internet ACLs, guidelines, and requests. On high of that, AWS Amplify Internet hosting provides $15/month while you connect an internet software firewall to your software. That is prorated by the hour.

This new functionality brings enterprise-grade security measures to all Amplify Internet hosting prospects, from particular person builders to giant enterprises. Now you can construct, host, and shield your internet functions throughout the identical service, lowering the complexity of your structure and streamlining your safety administration.

To study extra, go to the AWS WAF integration documentation for Amplify or strive it instantly within the Amplify console.

— seb


How is the Information Weblog doing? Take this 1 minute survey!

(This survey is hosted by an exterior firm. AWS handles your info as described within the AWS Privateness Discover. AWS will personal the info gathered by way of this survey and won’t share the knowledge collected with survey respondents.)

Leave a Reply

Your email address will not be published. Required fields are marked *