run tf destory first

This commit is contained in:
Jun-te Kim 2025-09-11 09:00:15 +00:00
parent 05bf0c1322
commit cd34ec2a3b
2 changed files with 1 additions and 5 deletions

View file

@ -11,8 +11,6 @@ data "aws_ecr_repository" "extractor_and_loader" {
# SQS queue for extractor_and_loader
resource "aws_sqs_queue" "extractor_and_loader_queue" {
name = "extractor-loader-queue"
visibility_timeout_seconds = 1800 # 30 minutes (>= 300s; ~6x rule of thumb)
receive_wait_time_seconds = 20 # optional: long polling
}

View file

@ -11,8 +11,6 @@ data "aws_ecr_repository" "walthamforest_etl_ecr" {
# SQS queue
resource "aws_sqs_queue" "walthamforest_etl_queue" {
name = "walthamforest_etl-queue"
visibility_timeout_seconds = 1800 # 30 minutes (>= 300s; ~6x rule of thumb)
receive_wait_time_seconds = 20 # optional: long polling
}
@ -62,7 +60,7 @@ resource "aws_lambda_function" "walthamforest_etl" {
package_type = "Image"
image_uri = "${data.aws_ecr_repository.walthamforest_etl_ecr.repository_url}:${var.lambda_image_tag}"
# Increase timeout (max 900 sec / 15 min)
timeout = 300 # e.g. 5 minutes
# timeout = 300 # e.g. 5 minutes
# Increase memory (default 128 MB)
memory_size = 2048 # try 1024 or 2048 MB to start