Make sure you have setup SSO via the console. If not reachout to [email protected] to have an SSO account created for you before you proceed
-
Run
aws configure sso --profile bwtc-devops-sandbox
-
SSO session name (Recommended): hit enter to skip unless you have an existing session
-
SSO start URL : terminal should automatically open URL, if not open the link below In order to access SSO, use this https://bitwiseindustries.awsapps.com/start
-
SSO region :
us-west-2
-
SSO Accounts Available to you: (Select Desired account, and enter)
-
SSO there are multiple roles available to you: (Select Desired roles, and enter)
-
CLI default client Region :
us-west-2
-
CLI default output format :
json
After following the steps you are ready to use terraform. Make sure you change your profile to match that of the --profile bwtc-devops-sandbox
you did in step 1.
If terraform does not work for any reason, you can get it running by re authenticating again by running the following:
aws sso login --profile bwtc-devops-sandbox