Followed below mentioned step for creating the sso profile in AWS using command prompt and leverage it to create S3 bucket:
Steps to Setup Profile:
In PowerShell ran: aws configure sso
sso_start_url = url
sso_region = us-east-1
Note: It will take to browser for login and verification. Once verified, it retrieves the role, After that i have selected the role
- CLI default client Region [eu-west-1]:
us-east-1 - CLI default output format [json]:
json - CLI profile name :
<<Provide your choice of name>> - This will create
.awsfolder and config file under your home directory (under\User\\<<username>>)
Steps to use profile:
Ran below command to set profile in PowerShell
setx AWS_PROFILE <<profile name>>and configure the access key and secret key using command aws configureAfter setting profile in current PowerShell session, trying to create the
S3bucket, but unable to create it.Got error like
No valid credentials for AWS provider
Profile recreation steps:
To recreate profile I have deleted the .aws folder which was created in the home directory path (under
\User\\<<username>>\\.aws)Now, while trying to create new profile using aws configure
ssocommand, it is showing error likeThe config profile (profile name) could not be found