Skip to content

scripts and processes to rotate access keys in cloud platforms

License

Notifications You must be signed in to change notification settings

ECSTeam/rotate-access-keys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rotate-access-keys

Created a repo in GitHub, rotate-access-keys

Sample Execution:

./rotate-access-keys.sh -1 -i aws -d 15

Help text:

usage: ./rotate-access-keys.sh.sh [options...] 
options:
 -a  AWS Access Credentials file ( defaults to ~/.aws/credentials ) 
 -i  The desired Cloud Platform (IAAS): ( azure aws gcp)
 -d  The Number of days since the last rotation, indicating expiry
     (-d 15 = 15 days and older will be rotated)
 -h  This help text
 -s  S3 Bucket filename to test access for the new keys.
 -1  Preview the users needing rotation (without making changes)

If using AWS:

/rotate-access-keys.sh -1 -i aws -d 1 -s s3://morgan-test2/junk.test

If you wish to rotate only one known user in AWS, you may execute the subordinate script directly:

<path to repo>/rotate-access-keys/aws/rotate-iam-user-key.sh  -a ~/.aws/credentials -s s3://morgan-test2/junk.test -u morgan-concourse -j morgan-concourse.json

About

scripts and processes to rotate access keys in cloud platforms

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages