Want to use WAF with a Lightsail Instance / WAF can't see Lightsail Cloudfront Distribution OR Lightsail Load Balancer

0

A lot of the content on this topic is 2-3 years old, and much of it is contradictory.

I have a lightsail instance. Within lightsail I've configured it to use a Cloudnet distribution. This distribution is invisible to WAF.

I subsequently created a loadbalancer within Lightsail, and that load balancer is also invisible to WAF.

Is there anyway to make WAF see these resources? Can I set up a VPC that makes these resources visible to WAF?

Right now it seems completely impossible to use WAF with lightsail resources (instances, distributions, load balancers created using standard lightsail tools) despite all the posts that say its possible.

Ideally I would like to have WAF protect the cloudnet distribution. I don't expect to have a lot of traffic to this site, and the distribution will be caching almost everything, but I do need waf to handle bot traffic.

Thanks in advance for all answers . . . I'm sure someting definitive would help a lot of people.

NBF
質問済み 9ヶ月前245ビュー
1回答
0

AWS WAF cannot be configured on distributions or load balancers created from Lightsail.
https://repost.aws/knowledge-center/lightsail-considerations-for-use

Firewall services: You can use AWS firewall services, such as AWS WAF and AWS Shield, with Application Load Balancer. These services aren't supported in Lightsail load balancer.

Perhaps the article you saw is about setting up AWS WAF on an ALB outside of an Amazon CloudFront or Lightsail VPC.
So, to set up AWS WAF, please create CloudFront from the CloudFront screen, not from the Lightsail screen.
Please refer to the documentation for creating CloudFront.
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-create-delete.html

profile picture
エキスパート
回答済み 9ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ