From 0ed6c29ee8393dddff6003f7d798d6e16d60c09b Mon Sep 17 00:00:00 2001 From: Samuel Young Date: Tue, 6 Jan 2026 13:10:27 +0000 Subject: [PATCH] CLDC-NONE: Add dev container to access infrastructure (#3135) * CLDC-NONE: Add dev container to access infrastructure * CORE-NONE: Add internal wiki link --- aws-devcontainer/.devcontainer/Dockerfile | 8 ++++++++ aws-devcontainer/.devcontainer/devcontainer.json | 6 ++++++ aws-devcontainer/.gitignore | 2 ++ aws-devcontainer/README.md | 5 +++++ aws-devcontainer/config.template | 3 +++ 5 files changed, 24 insertions(+) create mode 100644 aws-devcontainer/.devcontainer/Dockerfile create mode 100644 aws-devcontainer/.devcontainer/devcontainer.json create mode 100644 aws-devcontainer/.gitignore create mode 100644 aws-devcontainer/README.md create mode 100644 aws-devcontainer/config.template diff --git a/aws-devcontainer/.devcontainer/Dockerfile b/aws-devcontainer/.devcontainer/Dockerfile new file mode 100644 index 000000000..3fd23c4d4 --- /dev/null +++ b/aws-devcontainer/.devcontainer/Dockerfile @@ -0,0 +1,8 @@ +FROM homebrew/brew + +RUN brew install aws-vault && brew install awscli +RUN curl "https://s3.amazonaws.com/session-manager-downloads/plugin/latest/ubuntu_64bit/session-manager-plugin.deb" -o "session-manager-plugin.deb" && sudo dpkg -i session-manager-plugin.deb + +ENV AWS_VAULT_BACKEND=file +ENV AWS_VAULT_FILE_DIR=./vault +ENV AWS_CONFIG_FILE=./config diff --git a/aws-devcontainer/.devcontainer/devcontainer.json b/aws-devcontainer/.devcontainer/devcontainer.json new file mode 100644 index 000000000..99a86cf22 --- /dev/null +++ b/aws-devcontainer/.devcontainer/devcontainer.json @@ -0,0 +1,6 @@ +{ + "name": "CORE aws-vault", + "build": { + "dockerfile": "Dockerfile" + } +} diff --git a/aws-devcontainer/.gitignore b/aws-devcontainer/.gitignore new file mode 100644 index 000000000..b986cded8 --- /dev/null +++ b/aws-devcontainer/.gitignore @@ -0,0 +1,2 @@ +config +vault/* diff --git a/aws-devcontainer/README.md b/aws-devcontainer/README.md new file mode 100644 index 000000000..284a1d7ba --- /dev/null +++ b/aws-devcontainer/README.md @@ -0,0 +1,5 @@ +# CORE AWS/AWS-vault dev container + +Sets up aws CLI & aws-vault CLI, as well as config storage. + +See [internal documentation](https://softwiretech.atlassian.net/wiki/spaces/Support/pages/21648277643/CORE+AWS+Tasks#Accessing-a-database) for further description on configuring this with our infrastructure. diff --git a/aws-devcontainer/config.template b/aws-devcontainer/config.template new file mode 100644 index 000000000..2c76d5c77 --- /dev/null +++ b/aws-devcontainer/config.template @@ -0,0 +1,3 @@ +[default] +region=eu-west-2 +output=json