Open alecl opened 4 days ago
Thank you for sharing this.
As you shared it is possible to run the tool locally. You need to set AWS_REGION because there is no way to call IMDS from local machine and you must authenticate yourself. The AWS principal must have the pireporter policy attached.
I managed to get this working locally by:
1) Explicitly setting AWS_REGION so the code doesn't attempt to get it from IMDS 2) Adding some fixes via the moment JS library for my machine not being in UTC like RDS is for snapshot naming
This made it far easier to iterate on the pireporter code, debug in VSCode, etc.
I authorized via my AD integrated account via
aws sso login --profile <profile>
eval "$(aws configure export-credentials --profile <profile> --format env)"