I need to configure serverless.yaml as following:
1) 3 environments (stages) - dev ,qa ,prod
2) qa and dev should be ip restricted.
CloudFront serving static html files from S3.
S3 bucket :
qa/index.html
dev/index.html
prod/index.html
1)
The goal is to create a cloudfront distribution that has 3 behaviours that distribute to the corresponding origin (dev,qa,prod)
-another option is to create 3 separate cloudfronts for each stage
2)
In order to ip restrict I understand that WAF is required, and WAF is applied to the CF so, dev and qa can share cloudfront where prod should be in separate.
The question is, does serverless framework has plugins/documentation somewhere that can be helpful in such configuration? Didn't find anything. Is it possible to have multiple cloudfronts in the serverless.yml based on stage?
Thanks.