Skip to content

Commit

Permalink
Remove resource policy from frontend variables
Browse files Browse the repository at this point in the history
  • Loading branch information
aloftus23 committed Nov 14, 2024
1 parent cbeb3da commit 0ef9932
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
7 changes: 0 additions & 7 deletions backend/src/tasks/functions.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
---
cloudwatchToS3:
handler: src/tasks/cloudwatchToS3.handler
timeout: 900
events:
- schedule: rate(4 hours)
reservedConcurrency: 1
memorySize: 4096

scheduler:
handler: src/tasks/scheduler.handler
Expand Down
16 changes: 0 additions & 16 deletions frontend/env.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,13 @@
---
dev:
FRONTEND_DOMAIN: ''
RESOURCE_POLICY:
- Effect: Allow
Principal: '*'
Action: execute-api:Invoke
Resource: execute-api:/${self:provider.stage}/*/*
ENDPOINT_TYPE: REGIONAL
VPC_ENDPOINT: dummy
REGION: us-east-1

staging-cd:
REGION: us-east-1
ENDPOINT_TYPE: REGIONAL
RESOURCE_POLICY:
- Effect: Allow
Principal: '*'
Action: execute-api:Invoke
Resource: execute-api:/${self:provider.stage}/*/*
DOMAIN: staging-cd.crossfeed.cyber.dhs.gov
COGNITO_URL: https://cognito-idp.us-east-1.amazonaws.com
BACKEND_DOMAIN: https://api.staging-cd.crossfeed.cyber.dhs.gov
Expand All @@ -27,11 +17,6 @@ staging-cd:
integration:
REGION: us-east-1
ENDPOINT_TYPE: REGIONAL
RESOURCE_POLICY:
- Effect: Allow
Principal: '*'
Action: execute-api:Invoke
Resource: execute-api:/${self:provider.stage}/*/*
DOMAIN: integration.crossfeed.cyber.dhs.gov
COGNITO_URL: https://cognito-idp.us-east-1.amazonaws.com
BACKEND_DOMAIN: https://api.integration.crossfeed.cyber.dhs.gov
Expand All @@ -41,7 +26,6 @@ integration:
staging:
REGION: us-gov-east-1
ENDPOINT_TYPE: PRIVATE
RESOURCE_POLICY: test
DOMAIN: staging.crossfeed.cyber.dhs.gov
VPC_ENDPOINT: ${ssm:/crossfeed/staging/BACKEND_VPC_ENDPOINT}
COGNITO_URL: https://cognito-idp.us-gov-west-1.amazonaws.com
Expand Down

0 comments on commit 0ef9932

Please sign in to comment.