This is a simple Web Api built with c# and .NET 8 to show an integration with Amazon S3. It also uses Dapper (ORM) + SQLite and Terraform.
- ✔️ .NET 8
- ✔️ AWS S3
- ✔️ SQLite
- ✔️ Dapper
- ✔️ Terraform
- .NET 8+
- AWS account
- AWS CLI
- Terraform
- Create an IAM user on your own AWS account with the role
AmazonS3FullAccess
. After creating the user, generate its access key; - Install all the requirements;
- Configure your AWS CLI with the access key using
aws configure
; - Initialize your terraform using
terraform init
; - Apply your terraform using
terraform apply
(you need to verify carefully and type "yes" and only then the resources will be created on AWS) - Ready! Just run the
Holtz.S3
project and use it.
After playing around with the application you'll want to teardown everything. To remove all AWS-related resources you just need to run terraform destroy
, verify and apply it.
Also you should want to remove the user and/or its access key.
aws configure
aws s3api list-buckets
terraform init
terraform validate
terraform plan
terraform apply
terraform destroy