Closed Guria closed 2 years ago
Build output
Deploying to stage task4-2
api-gateway › waiting
fe-distribution › waiting
fixtures › waiting
products-api › waiting
shop-frontend-app › waiting
api-gateway › deploying
fe-distribution › deploying
fixtures › deploying
api-gateway › Running "serverless deploy --stage task4-2 --param ResourcePrefix=ajp-task4-2"
fe-distribution › Running "serverless deploy --stage task4-2 --param ResourcePrefix=ajp-task4-2"
fixtures › Running "serverless deploy --stage task4-2 --param ResourcePrefix=ajp-task4-2"
api-gateway › Deploying ajp-api-gateway to stage task4-2 (us-east-1)
fe-distribution › Deploying ajp-fe-distribution to stage task4-2 (us-east-1)
fixtures › Deploying ajp-fixtures to stage task4-2 (us-east-1)
api-gateway › Change set did not include any changes to be deployed. (1s)
api-gateway › Running "serverless info --verbose --stage task4-2 --param ResourcePrefix=ajp-task4-2"
fe-distribution › Change set did not include any changes to be deployed. (2s)
fixtures › Change set did not include any changes to be deployed. (2s)
fe-distribution › Running "serverless info --verbose --stage task4-2 --param ResourcePrefix=ajp-task4-2"
fixtures › Running "serverless info --verbose --stage task4-2 --param ResourcePrefix=ajp-task4-2"
api-gateway › service: ajp-api-gateway
api-gateway › stage: task4-2
api-gateway › region: us-east-1
api-gateway › stack: ajp-api-gateway-task4-2
api-gateway ›
api-gateway › Stack Outputs:
api-gateway › ApiGatewayRestApiId: 3l8w5c8tkk
api-gateway › ApiGatewayRestApiEndpoint: https://3l8w5c8tkk.execute-api.us-east-1.amazonaws.com/task4-2
api-gateway › ApiGatewayRestApiRootResourceId: 2j1dcjdo82
api-gateway › ServerlessDeploymentBucketName: ajp-api-gateway-task4-2-serverlessdeploymentbucke-w9vakymtoi79
api-gateway › deployed
fe-distribution › service: ajp-fe-distribution
fe-distribution › stage: task4-2
fe-distribution › region: us-east-1
fe-distribution › stack: ajp-fe-distribution-task4-2
fe-distribution › Stack Outputs:
fe-distribution › WebAppCustomDomain: ajp-task4-2.guria.dev
fe-distribution › WebAppDistributionDomain: d1obrsbirikmfa.cloudfront.net
fe-distribution › WebAppDistributionId: E7B2BB522EPF9
fe-distribution › WebAppS3BucketName: ajp-task4-2-s3
fe-distribution › ServerlessDeploymentBucketName: ajp-fe-distribution-task-serverlessdeploymentbuck-1fuw16hl16iy0
fe-distribution › deployed
fixtures › service: ajp-fixtures
fixtures › stage: task4-2
fixtures › region: us-east-1
fixtures › stack: ajp-fixtures-task4-2
fixtures ›
fixtures › Stack Outputs:
fixtures › ServerlessDeploymentBucketName: ajp-fixtures-task4-2-serverlessdeploymentbucket-pfuszm7kgee9
fixtures › SeedS3BucketName: ajp-task4-2-fixtures
fixtures › deployed
products-api › deploying
products-api › Running "serverless deploy --stage task4-2 --param ResourcePrefix=ajp-task4-2 --param SeedS3BucketName=ajp-task4-2-fixtures --param ApiGatewayRestApiId=3l8w5c8tkk --param ApiGatewayRestApiRootResourceId=2j1dcjdo82 --param WebAppDistributionDomain=d1obrsbirikmfa.cloudfront.net --param WebAppCustomDomain=ajp-task4-2.guria.dev"
products-api › Deploying ajp-products-api to stage task4-2 (us-east-1)
products-api › No changes to deploy. Deployment skipped. (1s)
products-api › Running "serverless info --verbose --stage task4-2 --param ResourcePrefix=ajp-task4-2 --param SeedS3BucketName=ajp-task4-2-fixtures --param ApiGatewayRestApiId=3l8w5c8tkk --param ApiGatewayRestApiRootResourceId=2j1dcjdo82 --param WebAppDistributionDomain=d1obrsbirikmfa.cloudfront.net --param WebAppCustomDomain=ajp-task4-2.guria.dev"
products-api › service: ajp-products-api
products-api › stage: task4-2
products-api › region: us-east-1
products-api › stack: ajp-products-api-task4-2
products-api › endpoints:
products-api › GET - https://3l8w5c8tkk.execute-api.us-east-1.amazonaws.com/task4-2/products
products-api › GET - https://3l8w5c8tkk.execute-api.us-east-1.amazonaws.com/task4-2/products/{productId}
products-api › functions:
products-api › getProductsList: ajp-products-api-task4-2-getProductsList
products-api › getProductById: ajp-products-api-task4-2-getProductById
products-api › Stack Outputs:
products-api › GetProductByIdLambdaFunctionQualifiedArn: arn:aws:lambda:us-east-1:609136581632:function:ajp-products-api-task4-2-getProductById:1
products-api › GetProductsListLambdaFunctionQualifiedArn: arn:aws:lambda:us-east-1:609136581632:function:ajp-products-api-task4-2-getProductsList:1
products-api › ServiceEndpoint: https://3l8w5c8tkk.execute-api.us-east-1.amazonaws.com/task4-2
products-api › ServerlessDeploymentBucketName: ajp-products-api-task4-2-serverlessdeploymentbuck-1frl9ggnb56s4
products-api › no changes
shop-frontend-app › deploying
shop-frontend-app › Running "serverless deploy --stage task4-2 --param ApiGatewayRestApiId=3l8w5c8tkk --param ProductsApiServiceEndpoint=https://3l8w5c8tkk.execute-api.us-east-1.amazonaws.com/task4-2 --param WebAppS3BucketName=ajp-task4-2-s3 --param WebAppDistributionId=E7B2BB522EPF9 --param WebAppDistributionDomain=d1obrsbirikmfa.cloudfront.net --param WebAppCustomDomain=ajp-task4-2.guria.dev"
shop-frontend-app › Deploying ajp-shop-frontend to stage task4-2 (us-east-1)
shop-frontend-app › Running command: aws apigateway get-export --parameters extensions='apigateway' --rest-api-id 3l8w5c8tkk --stage-name task4-2 --export-type swagger public/swagger.json
shop-frontend-app › echo "CONFIG = {BASE_URL: \"https://3l8w5c8tkk.execute-api.us-east-1.amazonaws.com/task4-2\"}" > public/config.js
shop-frontend-app › npm run build
shop-frontend-app › {
shop-frontend-app › "contentType": "application/octet-stream",
shop-frontend-app › "contentDisposition": "attachment; filename=\"swagger_2022-10-20T20:53:58Z.json\""
shop-frontend-app › }
shop-frontend-app › > @guria.dev/aws-js-practitioner-shop-frontend@1.0.0 build
shop-frontend-app › > tsc && vite build
shop-frontend-app › vite v3.1.8 building for production...
shop-frontend-app › transforming...
shop-frontend-app › ✓ 3422 modules transformed.
shop-frontend-app › warnings when minifying css:
shop-frontend-app › ▲ [WARNING] Expected identifier but found "" [css-syntax-error]
shop-frontend-app ›
shop-frontend-app ›
Deployment removed
:heavy_check_mark: table names are passed to functions using environment variables :heavy_check_mark:
getProductsList
return a list of products from the database (joined stocks and products tables) :heavy_check_mark:getProductsById
return a single product from the database with stock :heavy_check_mark: middify will return 500 error for any unknown errorExtra effort: