To create an AWS account, see How do I create and activate a new Amazon Web Services account?
To perform these tutorials, you need to create an IAM (Identity and Access Management) user and obtain credentials for that user. Once you have those credentials, you make them available to the SDK in your development environment. Here's how:
[dotnet-tutorials-user]
aws_access_key_id = YOUR_ACCESS_KEY_ID
aws_secret_access_key = YOUR_SECRET_ACCESS_KEY
export AWS_PROFILE='dotnet-tutorials-user'
export AWS_REGION='us-east-1'
<aside> 🔥 Let's create a console app and add the AWS SDK package to interact with a Simple Storage Service (S3) for create a bucket and upload/list files in the bucket.
</aside>
dotnet new console --name S3CreateAndList
cd S3CreateAndList
dotnet add package AWSSDK.S3
Add the following code to your Program class: