used the same state! idiot

This commit is contained in:
Jun-te Kim 2025-09-11 16:42:12 +01:00
parent d7d8bd7f57
commit 3a8c8d979d
4 changed files with 11 additions and 10 deletions

View file

@ -5,15 +5,16 @@
"remoteUser": "vscode",
"workspaceFolder": "/workspaces/survey-extractor",
"postStartCommand": "bash .devcontainer/post-install.sh",
"remoteEnv": {
"SSH_AUTH_SOCK": "/ssh-agent"
},
"mounts": [
// Optional, just makes getting from Downloads (local env) easier
"source=${localEnv:HOME},target=/workspaces/home,type=bind",
"source=${localEnv:SSH_AUTH_SOCK},target=/ssh-agent,type=bind"
"features": {
"ghcr.io/devcontainers/features/ssh-agent:1": {}
},
"mounts": [
// Optional convenience mount
"source=${localEnv:HOME},target=/workspaces/home,type=bind"
],
"customizations": {
"vscode": {
"settings": {

View file

@ -59,7 +59,7 @@ resource "aws_iam_role_policy_attachment" "extractor_loader_policy_attach" {
# Lambda function
resource "aws_lambda_function" "extractor_and_loader" {
function_name = "extractor-and-loader"
function_name = "extractor-and-loader-lambda"
role = data.aws_iam_role.lambda_exec_role.arn
package_type = "Image"
image_uri = "${data.aws_ecr_repository.extractor_and_loader.repository_url}:${var.lambda_image_tag}"

View file

@ -8,7 +8,7 @@ terraform {
backend "s3" {
bucket = "survey-extractor-tf-state"
region = "eu-west-2"
key = "env:/dev/lambda/eachlambda/extractor_and_loader_lambda.tfstate"
key = "env:/dev/lambda/eachlambda/walthamforest_etl_lambda.tfstate"
}
required_version = ">= 1.2.0"

View file

@ -17,7 +17,7 @@ resource "aws_sqs_queue" "walthamforest_etl_adhoc_queue" {
# Custom IAM policy specific to lambda_example
resource "aws_iam_policy" "walthamforest_etl_adhoc_policy" {
name = "lambda-example-policy"
name = "walthamforest_adhoc_policy_lambda"
policy = jsonencode({
Version = "2012-10-17",