Skip to content

Commit

Permalink
Merge pull request #2455 from cisagov/2450-frontend-pipeline-fails-to…
Browse files Browse the repository at this point in the history
…-deploy-to-staging

Remove VPC Endpoints from Serverless Frontend
  • Loading branch information
aloftus23 authored Jan 10, 2024
2 parents c0a052a + 2cf3fe4 commit 549599e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
2 changes: 0 additions & 2 deletions frontend/env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ dev:

staging:
DOMAIN: 'staging-cd.crossfeed.cyber.dhs.gov'
VPC_ENDPOINT: ${ssm:/crossfeed/staging/BACKEND_VPC_ENDPOINT}

prod:
DOMAIN: 'crossfeed.cyber.dhs.gov'
VPC_ENDPOINT: ${ssm:/crossfeed/prod/BACKEND_VPC_ENDPOINT}

dev-vpc:
securityGroupIds:
Expand Down
14 changes: 0 additions & 14 deletions frontend/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,10 @@ provider:
stage: ${opt:stage, 'dev'}
environment: ${file(env.yml):${self:provider.stage}, ''}
vpc: ${file(env.yml):${self:provider.stage}-vpc, ''}
vpcEndpointIds:
- vpce-0f012d56c2afb9c1d
apiGateway:
binaryMediaTypes:
- 'image/*'
- 'font/*'
resourcePolicy:
- Effect: Deny
Principal: "*"
Action: "execute-api:Invoke"
Resource: "execute-api:/${self:provider.stage}/*/*"
Condition:
StringNotEquals:
"aws:sourceVpce": "vpce-0f012d56c2afb9c1d"
- Effect: Allow
Principal: "*"
Action: "execute-api:Invoke"
Resource: "execute-api:/${self:provider.stage}/*/*"
logs:
restApi: true
deploymentBucket:
Expand Down

0 comments on commit 549599e

Please sign in to comment.