From fd77f654f387d235550c97cbdba1d652bd6db515 Mon Sep 17 00:00:00 2001 From: pearl-truss Date: Mon, 5 Feb 2024 11:04:05 -0500 Subject: [PATCH] move condition to right spot for syntax --- services/app-api/serverless.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/app-api/serverless.yml b/services/app-api/serverless.yml index 24bf6e2060..bfffc21ea7 100644 --- a/services/app-api/serverless.yml +++ b/services/app-api/serverless.yml @@ -264,10 +264,10 @@ resources: ApiGwWebAclAssociation: Type: AWS::WAFv2::WebACLAssociation DependsOn: 'ApiGatewayDeployment${sls:instanceId}' + Condition: IsDevValProd Properties: ResourceArn: arn:aws:apigateway:${self:provider.region}::/restapis/${self:custom.appApiGatewayId}/stages/${sls:stage} WebACLArn: ${self:custom.appApiWafAclArn} - Condition: IsDevValProd Outputs: ApiAuthMode: Value: ${self:custom.reactAppAuthMode}