How to: Get aws access keys from Cloudtamer - Enterprise-CMCS/macpro-quickstart-serverless GitHub Wiki
To generate access keys for one of the aws accounts through cloudtamer, use the steps below.
Prerequisites:
- macOS: This is the only platform this project supports so far.
Steps:
- Get on cloudvpn
- Add the following script to your .bash_profile
# Install and run ctkey from anywhere ctkey () { mkdir -p ~/.ctkey if [ ! -f ~/.ctkey/ctkey.zip ]; then # Download the ctkey.zip arhive curl -o ~/.ctkey/ctkey.zip https://ctkey.s3.amazonaws.com/ctkey.zip # Ensure the archive will be re-extracted by removing the extracted directory rm -rf ~/.ctkey/ctkey fi if [ ! -d ~/.ctkey/ctkey ]; then # Extract the archive unzip ~/.ctkey/ctkey.zip -d ~/.ctkey/ctkey fi # Run the ctkey binary for OSX CTKEY_URL=https://cloudtamer.cms.gov ~/.ctkey/ctkey/ctkey-osx setenv --url=$CTKEY_URL --idms=2 }
- Run the following command in terminal after saving the .bash_profile file:
or open a new terminal window.source ~/.bash_profile
- Run
ctkey
.- Select Username and password.
- Enter your cloudtamer username and password
- That puts you in an interactive prompt to select which account you want eg
Macpro
and role you want within that account. egMACPro Application Admin
- This spills out AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN. Copy each of the 3 lines that starts with export and paste it on the terminal one after the other.