amplify-hosting
amplify-hosting copied to clipboard
Manual Deployment no longer reflecting changes
Before opening, please confirm:
- [X] I have checked to see if my question is addressed in the FAQ.
- [X] I have searched for duplicate or closed issues.
- [X] I have read the guide for submitting bug reports.
- [X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
App Id
d1prdls927k8sp
Region
us-east-2
Amplify Hosting feature
Manual deploys
Describe the bug
Upon building React application locally, and then 'drag & drop' the build
folder from local windows explorer onto the Choose files
area of the AWS UI, wait for the deployment to complete - status changes to Deployment successfully completed
, and then refreshing web page (via custom domain), the changes are not reflected.
Expected behavior
Upon successful deployment, and refresh of web page, the changes should be reflected
Reproduction steps
- Generate new React build locally via
yarn build
- Drag and Drop the
build
folder from Windows Explorer on toChoose files
portion of the AWS Web UI - Wait for deployment to complete - status changes to
Deployment successfully completed
- Refresh web page via custom domain
Build Settings
No response
Additional information
- There have been over 70 builds that have successfully completed in this manner
- No AWS Amplify settings were changed
- No changes to the custom domain
- Cache has been cleared multiple times, along with browsing via other devices to no avail
Upon further testing, it seems the changes ARE reflected on the "App Id" subdomain:
https://[app_name].[app_id].amplifyapp.com
but are not being displayed when using the custom domain
I just started using Amplify yesterday and bumped into this exact problem when trying to update the app. Did it ever work before? Maybe it only works when deploying from repositories?
P.S. It looks like this issue is probably the same as this one: https://github.com/aws-amplify/amplify-hosting/issues/2846 P.S.2 I note that the CloudFront distribution serving the app does not belong to the AWS account. Apparently, it is managed (which itself is questionable — how does billing for it work?). If it was accessible, it would be possible to simply create an invalidation.
Thank you @greendrake for referencing #2846 - I missed this.
I have deployed this way for over a year without issue, so I'm not sure what has changed.
re: CloudFront - when originally setting up the Amplify project and deployment, there was some "automagic" related to CloudFront. I'm not following re: "I note that the CloudFront distribution serving the app does not belong to the AWS account".
It does feel like something has changed or there is a sync / cache issue.
I'm not following re: "I note that the CloudFront distribution serving the app does not belong to the AWS account".
I just mean that the CF distribution (which is part of the Amplify deployment) is not accessible to us. You only can see it referenced in Route 53 attached to your custom domain A record, but if you go to the CloudFront console it won't be in there (otherwise we could just create an invalidation to bust the cache).
Ah yes. I completely agree.
Any update on this (or related) issue? I don't want to start changing DNS settings and/or recreate Amplify project if there is information that can help debug and resolve this.
Any update on this (or related) issue?
I have ditched Amplify for S3+CloudFront, and happy with it.
Any update on this (or related) issue?
I have ditched Amplify for S3+CloudFront, and happy with it.
Good to know. Thank you!
I was able to force the update / sync by following the steps from @soplan in #2844:
- Go to your app
- under App Settings select Domain Management
- Manage Sub Domains
- Click Disable
- Update
- Wait... and Click Enable again
We've root-caused the issue and are currently working on the fix. In the meantime, please use one of the following workarounds:
- Disable, then re-enable the custom domain in App Settings > Domain Management > Manage subdomains
- Only upload compressed .zip build artifact folders
Closing as duplicate of #2846. Please defer to that issue for any updates.
⚠️COMMENT VISIBILITY WARNING⚠️
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.