-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jon Whitcraft
committed
Jan 5, 2018
1 parent
79786fe
commit 0683905
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# AWS Role Trust Update | ||
|
||
A quick utility for updating AWS IAM role trust policies to allow other roles to assume this policy | ||
|
||
```console | ||
aws-role-trust-update -role-name <rolename here> -arn <awn arn here> | ||
``` | ||
|
||
## Help | ||
|
||
Make sure that the aws cli tool has been installed and has been configured. If not you can use the following environment variables: | ||
|
||
- AWS_ACCESS_KEY | ||
- AWS_SECRET_KEY | ||
|
||
### Existing Role ARN | ||
|
||
To get an existing roles ARN you can do the following with the AWS cli | ||
|
||
```console | ||
aws iam get-role --role-name <another role that is attached to an ec2 instance> | grep "Arn" | awk '{ print substr($2,2,length($2)-2) }' | ||
``` |