Some scripts to list the current AWS profiles
Code Generated by ChatGPT
python -V
Python 3.9.6
python ./list-aws-credentials.py
['default', 'profile1', 'profile2']dotnet new console -o AwsScripts -n Aws.Scripts
dotnet --version
8.0.100
dotnet new sln -n AwsScripts
The template "Solution File" was created successfully.
dotnet sln add Aws.Scripts.csproj
Project `Aws.Scripts.csproj` added to the solution.
dotnet add package AWSSDK.Extensions.NETCore.Setup
dotnet build Aws.Scripts.csproj
MSBuild version 17.8.3+195e7f5a3 for .NET
Determining projects to restore...
All projects are up-to-date for restore.
Aws.Scripts -> C:\Users\John\source\repos\Aws\scripts\AwsScripts\bin\Debug\net8.0\Aws.Scripts.dll
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:08.76
dotnet run
default
profile1
profile2aws configure list-profiles
default
profile1
profile2