Browse Source

CLDC-NONE: Add dev container to access infrastructure (#3135)

* CLDC-NONE: Add dev container to access infrastructure

* CORE-NONE: Add internal wiki link
main
Samuel Young 3 days ago committed by GitHub
parent
commit
0ed6c29ee8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 8
      aws-devcontainer/.devcontainer/Dockerfile
  2. 6
      aws-devcontainer/.devcontainer/devcontainer.json
  3. 2
      aws-devcontainer/.gitignore
  4. 5
      aws-devcontainer/README.md
  5. 3
      aws-devcontainer/config.template

8
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

6
aws-devcontainer/.devcontainer/devcontainer.json

@ -0,0 +1,6 @@
{
"name": "CORE aws-vault",
"build": {
"dockerfile": "Dockerfile"
}
}

2
aws-devcontainer/.gitignore vendored

@ -0,0 +1,2 @@
config
vault/*

5
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.

3
aws-devcontainer/config.template

@ -0,0 +1,3 @@
[default]
region=eu-west-2
output=json
Loading…
Cancel
Save