chetan/invalidate-cloudfront-action

Why is region required?

Closed this issue · 2 comments

Hi @chetan, just wondering why the aws region is required as cloudfront is a global resource? I see AWS_REGION is checked in the entrypoint.sh script which seemed to be used for the initial aws configure command, but is that necessary for this script?

Hi @aychtang, the region is used for setting up the aws profile as you noted. It is required by the cloudfront API (I don't have a reference handy, sorry). Hope that helps!