aws-actions / aws-secretsmanager-get-secrets

MIT No Attribution
142 stars 38 forks source link

getting permission denied issue if configure-aws-credentials has different region. #182

Closed Pixis-Akshay-Gopani closed 2 weeks ago

Pixis-Akshay-Gopani commented 3 weeks ago
simonmarty commented 2 weeks ago

This is consistent with AWS Secrets Manager API behavior. Override this behavior using environment variables like AWS_REGION for ex.

# With us-west-2 credentials
aws secretsmanager describe-secret --secret-id arn:aws:secretsmanager:us-east-1:048373692869:secret:newsecret # fails
aws secretsmanager describe-secret --secret-id arn:aws:secretsmanager:us-east-1:048373692869:secret:newsecret --region us-east-1 # succeeds