trek10inc / awsume

A utility for easily assuming AWS IAM roles from the command line.
https://awsu.me
MIT License
494 stars 90 forks source link

awsume profile does not assume profile, it defaults to default aws cli #58

Closed unks5338 closed 5 years ago

unks5338 commented 5 years ago
  1. MACOS 10.14.4
  2. bash profile updated with awsume='. awsume'
  3. When running awsume the profile defaults to the 'do-nothing' profile

Example: bash-3.2$ awsume poc-admin AWSume: User profile credentials will expire at: 2019-07-09 03:56:55 AWSume: Role profile credentials will expire at: 2019-07-08 17:04:42

However, I can not run any cli commands on the assumed profile. I can execute a command with --profile and that works fine, but awsume does not assume profile, it stays on default 'do-nothing' profile

mbarneyjr commented 5 years ago

Hi @unks5338 ,

If your awsume is not setting your environment's credentials, the most common issue is the alias. I see that you say it's defined in your ~/.bash_profile, however is it being executed?

You can see if the alias is set anytime by running the alias command and searching for the alias

unks5338 commented 5 years ago

Thanks, I am good now, I resolved the issue.

Regards,

Lee Unks Senior Cloud Engineer | AIG Technology Services 200 S. College St. 13th Floor, Charlotte, NC 28202 Mobile: 980.244.1004 | Lee.Unks@AIG.commailto:Glenn.Walker@AIG.com

From: Michael Barney Jr notifications@github.com Reply-To: trek10inc/awsume reply@reply.github.com Date: Tuesday, July 30, 2019 at 9:53 AM To: trek10inc/awsume awsume@noreply.github.com Cc: "Unks, Lee R" Lee.Unks@aig.com, Mention mention@noreply.github.com Subject: [EXTERNAL] Re: [trek10inc/awsume] awsume profile does not assume profile, it defaults to default aws cli (#58)

This message is from an external sender; be cautious with links and attachments.

Hi @unks5338https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_unks5338&d=DwMCaQ&c=kn4_INW_mBCDHV_xJEVJkg&r=-SmHTR0xniJKCjrSZiFEQA&m=_N-W9PrAl8tiU0C5ikxZpOxkAgDnI8iIujsjl6ACejA&s=AlWstmEZaSMiV5wcWPtb9JFuGPqdEYH54jKJbNGjhWI&e= ,

If your awsume is not setting your environment's credentials, the most common issue is the alias. I see that you say it's defined in your ~/.bash_profile, however is it being executed?

You can see if the alias is set anytime by running the alias command and searching for the alias

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_trek10inc_awsume_issues_58-3Femail-5Fsource-3Dnotifications-26email-5Ftoken-3DAMR4PQ4ABSY6EFNUA5AHD33QCBBU7A5CNFSM4H67CAM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3EBGRI-23issuecomment-2D516428613&d=DwMCaQ&c=kn4_INW_mBCDHV_xJEVJkg&r=-SmHTR0xniJKCjrSZiFEQA&m=_N-W9PrAl8tiU0C5ikxZpOxkAgDnI8iIujsjl6ACejA&s=ET0qYJBsZG0Lq82NtskN2WNPohr2wxh7jN4KZRcvr0U&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AMR4PQ2ZBAKQOQMZY6B4WTTQCBBU7ANCNFSM4H67CAMQ&d=DwMCaQ&c=kn4_INW_mBCDHV_xJEVJkg&r=-SmHTR0xniJKCjrSZiFEQA&m=_N-W9PrAl8tiU0C5ikxZpOxkAgDnI8iIujsjl6ACejA&s=F0LU9CZLHWgrwjVXveVgH0rLBiEYmUvGQOCr3JLrJSE&e=.