github-action
github-action copied to clipboard
Support role assumption from long term creds
Instead of encouraging privileged long term creds, we should encourage long term creds with permissions only to assume an IAM role. Even better if we can restrict them to only GitHub action runner IP ranges.
I think this is supported. See https://github.com/serverless/github-action/issues/66#issuecomment-1316746468
You can pass AWS_SECRET_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables with --use-local-credentials