-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update devcontainer configuration and add AWS CloudWatch log gr…
…oup (#23) - Added a new resource for an AWS CloudWatch log group in main.tf. - Created a new variable "log_retion_period_in_days" with a default value of 365 days in variables.tf. Co-authored-by: Stefan Freitag <[email protected]>
- Loading branch information
1 parent
a3fd9d2
commit 6cba56b
Showing
4 changed files
with
49 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,39 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/alpine | ||
{ | ||
"name": "Ubuntu", | ||
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile | ||
"image": "mcr.microsoft.com/devcontainers/base:jammy", | ||
"features": { | ||
"ghcr.io/devcontainers/features/terraform:1": {}, | ||
"ghcr.io/devcontainers-contrib/features/checkov:1": {}, | ||
"ghcr.io/devcontainers-contrib/features/pre-commit:2": {}, | ||
"ghcr.io/devcontainers-contrib/features/terraform-docs:1": {}, | ||
"ghcr.io/devcontainers-contrib/features/tfsec:1": {} | ||
} | ||
|
||
"name": "devcontainer", | ||
"image": "mcr.microsoft.com/vscode/devcontainers/base:ubuntu-22.04", | ||
// Features to add to the dev container. More info: https://containers.dev/features. | ||
// "features": {}, | ||
|
||
"features": { | ||
"ghcr.io/devcontainers/features/aws-cli:1": { | ||
"version": "latest" | ||
}, | ||
"ghcr.io/devcontainers-contrib/features/checkov:1": { | ||
"version": "latest" | ||
}, | ||
"ghcr.io/devcontainers/features/terraform:1": { | ||
"version": "1.5.0", | ||
"tflint": "0.47.0", | ||
"installTFsec": "true", | ||
"installTerraformDocs": "true" | ||
}, | ||
"ghcr.io/devcontainers-contrib/features/pre-commit:2": { | ||
"version": "latest" | ||
}, | ||
"ghcr.io/devcontainers-contrib/features/terrascan:1": { | ||
"version": "latest" | ||
} | ||
}, | ||
"shutdownAction": "stopContainer", | ||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
|
||
// Use 'postCreateCommand' to run commands after the container is created. | ||
// "postCreateCommand": "uname -a", | ||
|
||
"postCreateCommand": { | ||
"one": "tflint --init", | ||
"two": "pre-commit" | ||
}, | ||
// Configure tool-specific properties. | ||
// "customizations": {}, | ||
|
||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. | ||
// "remoteUser": "root" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters