matheussilvasantos / dynamocli

Utilities for interaction with AWS DynamoDB
MIT License
26 stars 5 forks source link

Doesn't work with cross account roles. #2

Closed varunchandak closed 4 years ago

matheussilvasantos commented 4 years ago

I've followed the section Switch Roles (AWS CLI) on Tutorial: Delegate Access Across AWS Accounts Using IAM Roles and I was able to use the commands of dynamocli. What error are you getting?

matheussilvasantos commented 4 years ago

I think you have two profiles on your ~/.aws/credentials file, as you explain in your article Using AWS CLI with Cross Account Access . In this case, you can run dynamocli passing the AWS_PROFILE environment variable with the profile you want to use, for example: AWS_PROFILE=testaccount dynamocli erase users.

varunchandak commented 4 years ago

okay, the AWS says to use AWS_DEFAULT_PROFILE use a specific profile. I'll give a try using AWS_PROFILE. Thanks

matheussilvasantos commented 4 years ago

Okay, keep me updated :smile:.