diff --git a/terraform/api.tf b/terraform/api.tf index 57cadac..abaef39 100644 --- a/terraform/api.tf +++ b/terraform/api.tf @@ -57,13 +57,6 @@ resource "heroku_formation" "api_checksum_worker" { quantity = 1 } -resource "heroku_formation" "api_analytics_worker" { - app_id = module.api.heroku_app_id - type = "analytics-worker" - size = "standard-1x" - quantity = 1 -} - data "aws_iam_user" "api" { user_name = module.api.heroku_iam_user_id } diff --git a/terraform/modules/dandiset_bucket/log_bucket.tf b/terraform/modules/dandiset_bucket/log_bucket.tf index 431a30b..616f602 100644 --- a/terraform/modules/dandiset_bucket/log_bucket.tf +++ b/terraform/modules/dandiset_bucket/log_bucket.tf @@ -19,24 +19,6 @@ resource "aws_s3_bucket_server_side_encryption_configuration" "log_bucket" { } data "aws_iam_policy_document" "dandiset_log_bucket_policy" { - statement { - resources = [ - "${aws_s3_bucket.log_bucket.arn}", - "${aws_s3_bucket.log_bucket.arn}/*", - ] - - actions = [ - # Needed for the app to process logs for collecting download analytics - "s3:GetObject", - "s3:ListBucket", - ] - - principals { - type = "AWS" - identifiers = [var.heroku_user.arn] - } - } - statement { sid = "S3ServerAccessLogsPolicy" effect = "Allow" diff --git a/terraform/staging_pipeline.tf b/terraform/staging_pipeline.tf index 2501672..aa6ffa6 100644 --- a/terraform/staging_pipeline.tf +++ b/terraform/staging_pipeline.tf @@ -56,13 +56,6 @@ resource "heroku_formation" "api_staging_checksum_worker" { quantity = 1 } -resource "heroku_formation" "api_staging_analytics_worker" { - app_id = module.api_staging.heroku_app_id - type = "analytics-worker" - size = "basic" - quantity = 1 -} - data "aws_iam_user" "api_staging" { user_name = module.api_staging.heroku_iam_user_id }