This project aims to provide you an example of how to use AWS credentials when developing in a Dev Containers.
I have written an article about it and you can find it at https://theindiecoder/posts/use-aws-credentials-in-a-dev-container/.
Whether you are a macOS user or a Windows user, you need to have the following installed:
- Visual Studio Code
- VS Code Dev Containers extension
- Docker Desktop
- AWS credentials configured on your local machine.
I have prepared this guide as a macOS user, so I have not tried running Dev Containers on Windows or Linux. If you are a Windows or Linux user, please refer to the Visual Studio Code documentation for installation instructions.
-
Fork this repository.
-
Open the repository with VS Code.
-
In the bottom left corner of your VS Code window, click on the
Dev Container Extension
button..
-
A setup wizard will pop up, in the middle of the window. Select the Reopen in Container option.
.
-
open a New Terminal.
-
run
aws s3 ls
Congratulations! You are now able to use AWS credentials in a Dev Container! 🚀