terraform mirrors deployment and aws secrets in github

This commit is contained in:
Jun-te Kim 2025-07-18 12:56:02 +00:00
parent c883f417f4
commit ee62c1920d
8 changed files with 8 additions and 9 deletions

View file

@ -3,6 +3,12 @@ FROM library/python:3.12-bullseye
ARG USER=vscode
ARG DEBIAN_FRONTEND=noninteractive
# DO NOT PUSH IMAGE TO ECR!!! as anyone with access to image can log on to our aws
# Will log on as aws Jun-te account, change in the future to development account
ENV AWS_ACCESS_KEY_ID=AKIAU5A36PPNK7RXX52V
ENV AWS_SECRET_ACCESS_KEY=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
ENV AWS_DEFAULT_REGION=eu-west-2
# Install system dependencies in a single layer
RUN apt update && apt install -y --no-install-recommends \
sudo jq vim curl\

View file

@ -6,9 +6,8 @@
"workspaceFolder": "/workspaces/survey-extractor",
"postStartCommand": "bash .devcontainer/post-install.sh",
"mounts": [
"source=${localEnv:HOME},target=/workspaces/home,type=bind",
// Make sure you aws credentials are saved at ~/.aws
"source=${localEnv:HOME}/.aws/,target=/home/vscode/.aws/,type=bind"
// Optional, just makes getting from Downloads (local env) easier
"source=${localEnv:HOME},target=/workspaces/home,type=bind"
],
"customizations": {
"vscode": {

View file

@ -8,7 +8,6 @@ terraform {
backend "s3" {
bucket = "survey-extractor-tf-state"
region = "eu-west-2"
profile = "domna.dev" # /home/vscode/aws/credentials
key = "env:/dev/terraform.tfstate"
}

View file

@ -8,7 +8,6 @@ terraform {
backend "s3" {
bucket = "survey-extractor-tf-state"
region = "eu-west-2"
profile = "domna.dev" # /home/vscode/aws/credentials
key = "env:/dev/lambda/ecr/extractor_and_loader.tfstate"
}

View file

@ -8,7 +8,6 @@ terraform {
backend "s3" {
bucket = "survey-extractor-tf-state"
region = "eu-west-2"
profile = "domna.dev" # /home/vscode/aws/credentials
key = "env:/dev/lambda/eachlambda/extractor_and_loader_lambda.tfstate"
}

View file

@ -8,7 +8,6 @@ terraform {
backend "s3" {
bucket = "survey-extractor-tf-state"
region = "eu-west-2"
profile = "domna.dev" # /home/vscode/aws/credentials
key = "env:/dev/lambda/ecr/lambda_example_ecr.tfstate"
}

View file

@ -8,7 +8,6 @@ terraform {
backend "s3" {
bucket = "survey-extractor-tf-state"
region = "eu-west-2"
profile = "domna.dev" # /home/vscode/aws/credentials
key = "env:/dev/lambda/eachlambda/lambda_example.tfstate"
}

View file

@ -8,7 +8,6 @@ terraform {
backend "s3" {
bucket = "survey-extractor-tf-state"
region = "eu-west-2"
profile = "domna.dev" # /home/vscode/aws/credentials
key = "env:/dev/lambda/lambda_share_configuration.tfstate"
}