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