Skip to content

Commit

Permalink
fix the parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
kristin-at-theta committed Oct 11, 2023
1 parent ffa9755 commit 26ea6c6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions services/ui-src/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ plugins:
- serverless-s3-sync
- serverless-s3-bucket-helper

provider:
name: aws
runtime: nodejs18.x
region: us-east-1
stage: dev

custom:
stage: ${opt:stage, self:provider.stage}
api_region: ${cf:app-api-${self:custom.stage}.Region}
Expand All @@ -20,6 +26,7 @@ custom:
application_endpoint_url: ${cf:ui-${self:custom.stage}.CloudFrontEndpointUrl}
cognito_user_pool_client_id: ${cf:ui-auth-${self:custom.stage}.UserPoolClientId}
cognito_user_pool_client_domain: ${cf:ui-auth-${self:custom.stage}.UserPoolClientDomain}
ui_cloudfront_distribution_id: ${cf:ui-${self:custom.stage}.CloudFrontDistributionId}

s3Sync:
- bucketName: ${self:custom.ui_s3_bucket_name}
Expand Down Expand Up @@ -47,11 +54,4 @@ custom:
cp public/env-config.js build/env-config.js
deploy:finalize: |
set -e
aws cloudfront create-invalidation --region ${self:provider.region} --distribution-id ${param:CloudfrontDistributionId} --paths "/*"
# The `provider` block defines where your service will be deployed
provider:
name: aws
runtime: nodejs14.x
region: us-east-1
stage: dev

aws cloudfront create-invalidation --region ${self:provider.region} --distribution-id ${self:custom.ui_cloudfront_distribution_id} --paths "/*"

0 comments on commit 26ea6c6

Please sign in to comment.