From 020fab482e6d5bd0b2393028edebe36e34c12d9b Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Tue, 13 Dec 2022 11:35:26 -0300 Subject: [PATCH] Remove redundant dependencies Co-authored-by: Ezequiel Bellver --- terraform/organization/apigw.tf | 5 ----- terraform/organization/cloudfront.tf | 6 ------ terraform/organization/cognito.tf | 4 ---- terraform/organization/lambda.tf | 4 ---- terraform/organization/route53.tf | 4 ---- terraform/organization/sqs.tf | 4 ---- 6 files changed, 27 deletions(-) diff --git a/terraform/organization/apigw.tf b/terraform/organization/apigw.tf index 6990ad6..f4bd4d0 100644 --- a/terraform/organization/apigw.tf +++ b/terraform/organization/apigw.tf @@ -5,11 +5,6 @@ module "apigw" { aws = aws.aws } - depends_on = [ - module.lambda, - module.sqs - ] - name = "AWSAPIGateway-g3" lambda = { diff --git a/terraform/organization/cloudfront.tf b/terraform/organization/cloudfront.tf index 7b9f1bb..3632841 100644 --- a/terraform/organization/cloudfront.tf +++ b/terraform/organization/cloudfront.tf @@ -6,12 +6,6 @@ module "cloudfront" { aws = aws.aws } - depends_on = [ - module.s3, - module.apigw, - module.acm - ] - enabled = true web_acl_id = try(each.value.web_acl_id, null) aliases = each.value.aliases diff --git a/terraform/organization/cognito.tf b/terraform/organization/cognito.tf index 9c867ad..b0ab01c 100644 --- a/terraform/organization/cognito.tf +++ b/terraform/organization/cognito.tf @@ -1,10 +1,6 @@ module "cognito" { source = "../modules/cognito" - depends_on = [ - module.lambda - ] - providers = { aws = aws.aws } diff --git a/terraform/organization/lambda.tf b/terraform/organization/lambda.tf index 63fd3fc..120148f 100644 --- a/terraform/organization/lambda.tf +++ b/terraform/organization/lambda.tf @@ -6,10 +6,6 @@ module "lambda" { aws = aws.aws } - depends_on = [ - module.vpc - ] - function_name = each.value.function_name handler = each.value.handler runtime = each.value.runtime diff --git a/terraform/organization/route53.tf b/terraform/organization/route53.tf index 63b8706..71b156b 100644 --- a/terraform/organization/route53.tf +++ b/terraform/organization/route53.tf @@ -5,10 +5,6 @@ module "route53" { aws = aws.aws } - depends_on = [ - module.cloudfront - ] - zone_name = local.domain records = { diff --git a/terraform/organization/sqs.tf b/terraform/organization/sqs.tf index d15ea1a..a56c545 100644 --- a/terraform/organization/sqs.tf +++ b/terraform/organization/sqs.tf @@ -5,10 +5,6 @@ module "sqs" { aws = aws.aws } - depends_on = [ - module.lambda - ] - name = "AWS-SQS-g3" lambda_name = module.lambda["lambdaSQS"].function_name