adding aws credentials
This commit is contained in:
@@ -3,17 +3,19 @@
|
|||||||
{
|
{
|
||||||
"name": "terraform-dev-environment",
|
"name": "terraform-dev-environment",
|
||||||
"image": "mcr.microsoft.com/devcontainers/base:jammy",
|
"image": "mcr.microsoft.com/devcontainers/base:jammy",
|
||||||
|
|
||||||
"features": {
|
"features": {
|
||||||
"ghcr.io/devcontainers/features/aws-cli:1": {},
|
"ghcr.io/devcontainers/features/aws-cli:1": {},
|
||||||
"ghcr.io/devcontainers/features/terraform:1": {},
|
"ghcr.io/devcontainers/features/terraform:1": {},
|
||||||
"ghcr.io/dhoeric/features/terraform-docs:1": {},
|
"ghcr.io/dhoeric/features/terraform-docs:1": {},
|
||||||
"ghcr.io/dhoeric/features/tfsec:1": {},
|
"ghcr.io/dhoeric/features/tfsec:1": {}
|
||||||
"ghcr.io/devcontainers/features/git:1": {}
|
|
||||||
},
|
},
|
||||||
|
// mounting local aws configuration
|
||||||
|
"mounts": [
|
||||||
|
"source=${env:HOME}${env:USERPROFILE}/.aws,target=/home/vscode/.aws,type=bind"
|
||||||
|
],
|
||||||
|
// a post create command to check the installed versions
|
||||||
"postCreateCommand": "terraform version && tfsec --version && terraform-docs --version",
|
"postCreateCommand": "terraform version && tfsec --version && terraform-docs --version",
|
||||||
|
// setting the default vsc addons and settings
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"vscode": {
|
"vscode": {
|
||||||
"extensions": [
|
"extensions": [
|
||||||
@@ -26,7 +28,7 @@
|
|||||||
],
|
],
|
||||||
"settings": {
|
"settings": {
|
||||||
"editor.formatOnSave": true,
|
"editor.formatOnSave": true,
|
||||||
"editor.trimTrailingWhitespace": true,
|
"editor.trimTrailingWhitespace": true,
|
||||||
"files.trimTrailingWhitespace": true,
|
"files.trimTrailingWhitespace": true,
|
||||||
"files.insertFinalNewline": true,
|
"files.insertFinalNewline": true,
|
||||||
"terraform.experimentalFeatures.validateOnSave": true,
|
"terraform.experimentalFeatures.validateOnSave": true,
|
||||||
@@ -37,6 +39,5 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"remoteUser": "vscode"
|
"remoteUser": "vscode"
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user