Closed Guria closed 2 years ago
Build output
Deploying to stage task6-3 api-gateway › waiting fe-distribution › waiting fixtures › waiting products-api › waiting products-import › waiting shop-frontend-app › waiting api-gateway › deploying fe-distribution › deploying fe-distribution › Running "serverless deploy --stage task6-3 --param ResourcePrefix=ajp-task6-3" api-gateway › Running "serverless deploy --stage task6-3 --param ResourcePrefix=ajp-task6-3" fe-distribution › Deploying ajp-fe-distribution to stage task6-3 (us-east-1) api-gateway › Deploying ajp-api-gateway to stage task6-3 (us-east-1) fe-distribution › Change set did not include any changes to be deployed. (1s) api-gateway › Change set did not include any changes to be deployed. (1s) fe-distribution › Running "serverless info --verbose --stage task6-3 --param ResourcePrefix=ajp-task6-3" api-gateway › Running "serverless info --verbose --stage task6-3 --param ResourcePrefix=ajp-task6-3" fe-distribution › service: ajp-fe-distribution fe-distribution › stage: task6-3 fe-distribution › region: us-east-1 fe-distribution › stack: ajp-fe-distribution-task6-3 fe-distribution › Stack Outputs: fe-distribution › WebAppCustomDomain: ajp-task6-3.guria.dev fe-distribution › HostedZoneDomain: guria.dev fe-distribution › WebAppDistributionDomain: dylp3i476s8mx.cloudfront.net fe-distribution › WebAppDistributionId: EVT68D79F9D9P fe-distribution › WebAppS3BucketName: ajp-task6-3-s3 fe-distribution › ServerlessDeploymentBucketName: ajp-fe-distribution-task-serverlessdeploymentbuck-5d8kfryg1o26 fe-distribution › deployed api-gateway › service: ajp-api-gateway api-gateway › stage: task6-3 api-gateway › region: us-east-1 api-gateway › stack: ajp-api-gateway-task6-3 api-gateway › api-gateway › Stack Outputs: api-gateway › ApiGatewayRestApiId: 1f30mvpw6a api-gateway › ApiGatewayRestApiEndpoint: https://1f30mvpw6a.execute-api.us-east-1.amazonaws.com/task6-3 api-gateway › ApiGatewayRestApiRootResourceId: h1mvlpxmz2 api-gateway › ServerlessDeploymentBucketName: ajp-api-gateway-task6-3-serverlessdeploymentbucke-1dpkl9do0qqs9 api-gateway › deployed fixtures › deploying fixtures › Running "serverless deploy --stage task6-3 --param ResourcePrefix=ajp-task6-3 --param WebAppDistributionDomain=dylp3i476s8mx.cloudfront.net --param WebAppCustomDomain=ajp-task6-3.guria.dev" fixtures › Deploying ajp-fixtures to stage task6-3 (us-east-1) fixtures › Change set did not include any changes to be deployed. (2s) fixtures › Running "serverless info --verbose --stage task6-3 --param ResourcePrefix=ajp-task6-3 --param WebAppDistributionDomain=dylp3i476s8mx.cloudfront.net --param WebAppCustomDomain=ajp-task6-3.guria.dev" fixtures › service: ajp-fixtures fixtures › stage: task6-3 fixtures › region: us-east-1 fixtures › stack: ajp-fixtures-task6-3 fixtures › fixtures › Stack Outputs: fixtures › FixturesS3BucketName: ajp-task6-3-fixtures fixtures › ServerlessDeploymentBucketName: ajp-fixtures-task6-3-serverlessdeploymentbucket-1ggrgmiz8hi6y fixtures › deployed products-api › deploying products-api › Running "serverless deploy --stage task6-3 --param ResourcePrefix=ajp-task6-3 --param FixturesS3BucketName=ajp-task6-3-fixtures --param ApiGatewayRestApiId=1f30mvpw6a --param ApiGatewayRestApiRootResourceId=h1mvlpxmz2 --param WebAppDistributionDomain=dylp3i476s8mx.cloudfront.net --param WebAppCustomDomain=ajp-task6-3.guria.dev --param HostedZoneDomain=guria.dev" products-api › Deploying ajp-products-api to stage task6-3 (us-east-1) products-api › No changes to deploy. Deployment skipped. (1s) products-api › 1 deprecation found: run 'serverless doctor' for more details products-api › Running "serverless info --verbose --stage task6-3 --param ResourcePrefix=ajp-task6-3 --param FixturesS3BucketName=ajp-task6-3-fixtures --param ApiGatewayRestApiId=1f30mvpw6a --param ApiGatewayRestApiRootResourceId=h1mvlpxmz2 --param WebAppDistributionDomain=dylp3i476s8mx.cloudfront.net --param WebAppCustomDomain=ajp-task6-3.guria.dev --param HostedZoneDomain=guria.dev" products-api › service: ajp-products-api products-api › stage: task6-3 products-api › region: us-east-1 products-api › stack: ajp-products-api-task6-3 products-api › endpoints: products-api › GET - https://1f30mvpw6a.execute-api.us-east-1.amazonaws.com/task6-3/products products-api › GET - https://1f30mvpw6a.execute-api.us-east-1.amazonaws.com/task6-3/products/{productId} products-api › POST - https://1f30mvpw6a.execute-api.us-east-1.amazonaws.com/task6-3/products products-api › functions: products-api › getProductsList: ajp-products-api-task6-3-getProductsList products-api › getProductById: ajp-products-api-task6-3-getProductById products-api › createProduct: ajp-products-api-task6-3-createProduct products-api › catalogBatchProcess: ajp-products-api-task6-3-catalogBatchProcess products-api › Stack Outputs: products-api › GetProductByIdLambdaFunctionQualifiedArn: arn:aws:lambda:us-east-1:609136581632:function:ajp-products-api-task6-3-getProductById:1 products-api › GetProductsListLambdaFunctionQualifiedArn: arn:aws:lambda:us-east-1:609136581632:function:ajp-products-api-task6-3-getProductsList:2 products-api › ImportedProductsQueueUrl: https://sqs.us-east-1.amazonaws.com/609136581632/ajp-task6-3-imported-products products-api › ImportedProductsQueue: arn:aws:sqs:us-east-1:609136581632:ajp-task6-3-imported-products products-api › CreateProductLambdaFunctionQualifiedArn: arn:aws:lambda:us-east-1:609136581632:function:ajp-products-api-task6-3-createProduct:1 products-api › CatalogBatchProcessLambdaFunctionQualifiedArn: arn:aws:lambda:us-east-1:609136581632:function:ajp-products-api-task6-3-catalogBatchProcess:1 products-api › ServiceEndpoint: https://1f30mvpw6a.execute-api.us-east-1.amazonaws.com/task6-3 products-api › ServerlessDeploymentBucketName: ajp-products-api-task6-3-serverlessdeploymentbuck-17jilflwxqjle products-api › 1 deprecation found: run 'serverless doctor' for more details products-api › no changes products-import › deploying products-import › Running "serverless deploy --stage task6-3 --param ResourcePrefix=ajp-task6-3 --param FixturesS3BucketName=ajp-task6-3-fixtures --param ApiGatewayRestApiId=1f30mvpw6a --param ApiGatewayRestApiRootResourceId=h1mvlpxmz2 --param WebAppDistributionDomain=dylp3i476s8mx.cloudfront.net --param WebAppCustomDomain=ajp-task6-3.guria.dev --param ImportedProductsQueue=arn:aws:sqs:us-east-1:609136581632:ajp-task6-3-imported-products --param ImportedProductsQueueUrl=https://sqs.us-east-1.amazonaws.com/609136581632/ajp-task6-3-imported-products" products-import › Deploying ajp-products-import to stage task6-3 (us-east-1) products-import › ✔ Service deployed to stack ajp-products-import-task6-3 (43s) products-import › endpoint: GET - https://1f30mvpw6a.execute-api.us-east-1.amazonaws.com/task6-3/import products-import › functions: products-import › importProductsFile: ajp-products-import-task6-3-importProductsFile (195 kB) products-import › importFileParser: ajp-products-import-task6-3-importFileParser (191 kB) products-import › 1 deprecation found: run 'serverless doctor' for more details products-import › Running "serverless info --verbose --stage task6-3 --param ResourcePrefix=ajp-task6-3 --param FixturesS3BucketName=ajp-task6-3-fixtures --param ApiGatewayRestApiId=1f30mvpw6a --param ApiGatewayRestApiRootResourceId=h1mvlpxmz2 --param WebAppDistributionDomain=dylp3i476s8mx.cloudfront.net --param WebAppCustomDomain=ajp-task6-3.guria.dev --param ImportedProductsQueue=arn:aws:sqs:us-east-1:609136581632:ajp-task6-3-imported-products --param ImportedProductsQueueUrl=https://sqs.us-east-1.amazonaws.com/609136581632/ajp-task6-3-imported-products" products-import › service: ajp-products-import products-import › stage: task6-3 products-import › region: us-east-1 products-import › stack: ajp-products-import-task6-3 products-import › endpoint: GET - https://1f30mvpw6a.execute-api.us-east-1.amazonaws.com/task6-3/import products-import › functions: products-import › importProductsFile: ajp-products-import-task6-3-importProductsFile products-import › importFileParser: ajp-products-import-task6-3-importFileParser products-import › Stack Outputs: products-import › ImportProductsFileLambdaFunctionQualifiedArn: arn:aws:lambda:us-east-1:609136581632:function:ajp-products-import-task6-3-importProductsFile:2 products-import › ImportFileParserLambdaFunctionQualifiedArn: arn:aws:lambda:us-east-1:609136581632:function:ajp-products-import-task6-3-importFileParser:1 products-import › ServiceEndpoint: https://1f30mvpw6a.execute-api.us-east-1.amazonaws.com/task6-3 products-import › ServerlessDeploymentBucketName: ajp-products-import-task-serverlessdeploymentbuck-2kncbzs24nte products-import › 1 deprecation found: run 'serverless doctor' for more details products-import › deployed shop-frontend-app › deploying shop-frontend-app › Running "serverless deploy --stage task6-3 --param ApiGatewayRestApiId=1f30mvpw6a --param ProductsApiServiceEndpoint=https://1f30mvpw6a.execute-api.us-east-1.amazonaws.com/task6-3 --param WebAppS3BucketName=ajp-task6-3-s3 --param WebAppDistributionId=EVT68D79F9D9P --param WebAppDistributionDomain=dylp3i476s8mx.cloudfront.net --param WebAppCustomDomain=ajp-task6-3.guria.dev" shop-frontend-app › Deploying ajp-shop-frontend to stage task6-3 (us-east-1) shop-frontend-app › Running command: echo "CONFIG = {BASE_URL: \"https://1f30mvpw6a.execute-api.us-east-1.amazonaws.com/task6-3\"}" > public/config.js shop-frontend-app › npm run build shop-frontend-app › SWAGGER_DIST_PATH=$(node -e 'console.log(require("swagger-ui-dist").getAbsoluteFSPath())') shop-frontend-app › cp -r $SWAGGER_DIST_PATH/ dist/swagger shop-frontend-app › sed -i 's/url: "."/url: "swagger.json"/g' dist/swagger/swagger-initializer.js shop-frontend-app › aws apigateway get-export --parameters extensions='apigateway' --rest-api-id 1f30mvpw6a --stage-name task6-3 --export-type swagger dist/swagger/swagger.json 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 › ✓ 1768 modules transformed. shop-frontend-app › rendering chunks... shop-frontend-app › dist/index.html 0.57 KiB shop-frontend-app › dist/assets/dehydrated.eb01c8e5.js 0.58 KiB / gzip: 0.33 KiB shop-frontend-app › dist/assets/libs.03b6e541.js 114.11 KiB / gzip: 37.69 KiB shop-frontend-app › dist/assets/index.6ac9b7ab.js 215.96 KiB / gzip: 65.56 KiB shop-frontend-app › dist/assets/react.afe5f750.js 198.67 KiB / gzip: 60.67 KiB shop-frontend-app › { shop-frontend-app › "contentType": "application/octet-stream", shop-frontend-app › "contentDisposition": "attachment; filename=\"swagger_2022-11-02T11:35:46Z.json\"" shop-frontend-app › } shop-frontend-app › DistributionId: EVT68D79F9D9P shop-frontend-app › CloudfrontInvalidate: Invalidation started shop-frontend-app › Web App deployed to Cloudfront and available at following addresses: shop-frontend-app › https://dylp3i476s8mx.cloudfront.net shop-frontend-app › https://ajp-task6-3.guria.dev shop-frontend-app › Swagger Schema available at: shop-frontend-app › https://ajp-task6-3.guria.dev/swagger/swagger.json shop-frontend-app › Swagger UI available at: shop-frontend-app › * https://ajp-task6-3.guria.dev/swagger/index.html shop-frontend-app › Change set did not include any changes to be deployed. (26s) shop-frontend-app › Running "serverless info --verbose --stage task6-3 --param ApiGatewayRestApiId=1f30mvpw6a --param ProductsApiServiceEndpoint=https://1f30mvpw6a.execute-api.us-east-1.amazonaws.com/task6-3 --param WebAppS3BucketName=ajp-task6-3-s3 --param WebAppDistributionId=EVT68D79F9D9P --param WebAppDistributionDomain=dylp3i476s8mx.cloudfront.net --param WebAppCustomDomain=ajp-task6-3.guria.dev" shop-frontend-app › service: ajp-shop-frontend shop-frontend-app › stage: task6-3 shop-frontend-app › region: us-east-1 shop-frontend-app › stack: ajp-shop-frontend-task6-3 shop-frontend-app › shop-frontend-app › Stack Outputs: shop-frontend-app › ServerlessDeploymentBucketName: ajp-shop-frontend-task6-serverlessdeploymentbuck-1msyh5dxho6m7 shop-frontend-app › deployed
Deployment removed
:heavy_check_mark: Create an SNS topic and email subscriptions. :heavy_check_mark: Update the
catalogBatchProcess
lambda function to send an event to the SNS topic once it creates products. :heavy_plus_sign:catalogBatchProcess
lambda is covered by unit tests :heavy_plus_sign: There are 2 email subscriptions with different filtering rules