-
Notifications
You must be signed in to change notification settings - Fork 164
Closed
Description
Changes that I've made in the react-app (src\cfn-custom-resources\react-app\src) are not getting deployed after successful initial deployment.
Steps I've taken:
- Deploy successfully for first time using using SAM CLI (Option 2 in README) straight from this git repo witout any changes (
npm install,npm run build,sam build --use container,sam package...,sam deploy..). After this deploy, it's working as I'd expect - I can sign in & see the sample react app page. - Make minor change to
src\cfn-custom-resources\react-app\src\App.js(just an update to explanation text to test code deploy) - Attempt to deploy update using same steps as 1 (
npm install,npm run build,sam build --use container,sam package...,sam deploy..). All complete without errors. - Clear the CloudFront cache (just to make sure) :
aws cloudfront create-invalidation --distribution-id E16D.. --paths "/*"
After the update is deployed with # 3 I can see:
- The only updated sam zip package in the s3 build bucket is the react-app handler (as I would expect) and I can see the change from # 2 in that zip file.
- Stack shows UPDATE_COMPLETE and stack events specifically shows
ReactAppHandlerUPDATE_COMPLETE with times matching update from # 3 ReactAppHandlerlambda fn has an updated time of when I executed # 3- No log entries in CloudFront logs for
ReactAppHandlerwhen # 3 was executed. The only log entries are from when # 1 was executed (logs checked > 1 hour after # 3 completed) - react-app s3 bucket has no new files including no new files in statics/js/ - all are from the # 1 deployment.
I'm guessing this is something obvious I'm missing - thanks for pointing me in the right direction.
Metadata
Metadata
Assignees
Labels
No labels