Demo project for using AWSSSO with .NET SDK.
- Assumes an existing AWS Account
- Assumes there is at least 1 bucket within the AWS account.
- Configue AWS SSO
aws configure sso
- (Optional) Configuring SSO sometimes gives an unfriendly profile name based on the permission set name. If you'd like to change the profile name to something more friendly, login to AWS using the AWS CLI v2.
aws sso login --profile MyProfile
- Configure the appsettings.json file with the profile
{
"AWS": {
"Profile": "MyProfile",
"Region": "us-east-1"
}
}
- Run the project which should write the bucket names out to the console window.