Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dydxwill committed Jan 4, 2024
1 parent 5cb047d commit 727cb4f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 17 deletions.
2 changes: 1 addition & 1 deletion indexer/lambda.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ resource "aws_lambda_function" "main" {

for_each = local.lambda_services

image_uri = "${aws_ecr_repository.lambda_services[each.key].repository_url}:latest"
image_uri = "${aws_ecr_repository.lambda_services[each.key].repository_url}:19313c5"
package_type = "Image"
function_name = "${each.key}_lambda_function"
role = aws_iam_role.lambda_services[each.key].arn
Expand Down
6 changes: 1 addition & 5 deletions indexer/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -163,13 +163,9 @@ locals {
value : module.iam_service_ecs_task_roles["roundtable"].ecs_task_role_arn,
},
{
name : "RESEARCH_SNAPSHOT_S3_BUCKET_ARN",
name : "S3_BUCKET_ARN",
value : aws_s3_bucket.athena_rds_snapshots.arn,
},
{
name : "FAST_SYNC_SNAPSHOT_S3_BUCKET_ARN",
value : aws_s3_bucket.fast_sync_rds_snapshots.arn,
},
{
name : "LOOPS_ENABLED_TAKE_FAST_SYNC_SNAPSHOTS",
value : "true",
Expand Down
11 changes: 0 additions & 11 deletions indexer/s3_bucket.tf
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,3 @@ resource "aws_s3_bucket" "athena_rds_snapshots" {
Environment = var.environment
}
}

# AWS S3 bucket to store RDS snapshots, used as data source for fast sync.
resource "aws_s3_bucket" "fast_sync_rds_snapshots" {
bucket = "${local.account_id}-${var.environment}-${var.indexers[var.region].name}-fast-sync-rds-snapshots"
force_destroy = true

tags = {
Name = "${local.account_id}-${var.environment}-${var.indexers[var.region].name}-fast-sync-rds-snapshots"
Environment = var.environment
}
}

0 comments on commit 727cb4f

Please sign in to comment.