Open tech-meppem opened 17 hours ago
Hey @tech-meppem, thank you for reaching out and reporting this. The amplify_outputs.json
file can be generated using ampx generate outputs
.
Marking this as bug to update the command.
I'm facing the same issue as support for GitLab Enterprise Edition is not available. When I run the following command as mentioned in the docs I get:
npx ampx generate outputs --app-id myAppId --branch staging
StackDoesNotExistError: Stack does not exist.
Resolution: Ensure the CloudFormation stack ID or Amplify App ID and branch specified are correct and exists, then re-run this command.
😕
Please support GitLab EE 🙏
I'm facing the same issue as support for GitLab Enterprise Edition is not available. When I run the following command as mentioned in the docs I get:
npx ampx generate outputs --app-id myAppId --branch staging StackDoesNotExistError: Stack does not exist. Resolution: Ensure the CloudFormation stack ID or Amplify App ID and branch specified are correct and exists, then re-run this command.
😕
Please support GitLab EE 🙏
I'm also getting this issue. I currently believe it's likely due to region issues, as the app is on a different region to our IAM Identify Centre. However, that's just my best guess at the moment, and I'm currently investigating.
Hey @abarke @tech-meppem , does this app have a Gen 2 backend thats being hosted on a different app or is this just a frontend only app?
Hey @abarke @tech-meppem , does this app have a Gen 2 backend that's being hosted on a different app or is this just a frontend only app?
For me, no other hosted app at the moment. I'm trying to make a Gen 2 backend work on the same app (I guess?), although, it's being very unsuccessful.
Hey @abarke @tech-meppem , does this app have a Gen 2 backend thats being hosted on a different app or is this just a frontend only app?
Hey! I setup a new app in Gen 2 and chose the manual deployment. I zipped and uploaded my Nuxt .output
folder and the app hosting is working (without a backend). However when I go to Setup backend
and run the suggested command, it fails as mentioned above.
Until now I have only been using npx ampx sandbox
for development and now I want to host it. But this manual step is a real DX let down 😕
The setup backend page seems a bit strange to me. Perhaps this flow needs a rethink.
Hey folks, thank you for the information. The command allows generating the amplify_outputs.json
for the frontend application to use if a Gen 2 backend has been deployed in the same app. If the Gen 2 backend was deployed in a different app you will need to reference the app-id and branch of the backend app to generate the file.
Manual hosting currently does not support deploying Gen 2 backend resources, this is currently being tracked as a feature request: https://github.com/aws-amplify/amplify-backend/issues/775
passed this information to the Amplify team for improvements.
Environment information
Describe the bug
I'm trying to deploy to an amplify app using S3 buckets, not a repo (we're just doing feasibility / investigation POC). So everything has been zipped, and uploaded to S3, then selecting S3 bucket, then that zip when deploying updates.
We are zipping up the build outputs only, not the full repo. The site loads fine, but now it comes to implementing backend. But I cannot find much documentation or help for setting up the "backend" with manual deployment, as all examples use git repos with the "app settings" page.
The only thing I can find is this page:
https://eu-north-1.console.aws.amazon.com/amplify/apps/<appid>/branches/staging/backend-help
Which tells me to run anpx ampx generate config
command.However, when running that command, the help text of the command is printed, followed by
"Error: Unknown command: config"
.config
is not listed as an available command forampx generate
, so I am wondering if there is a recent update has changed things. It's not listed here either: https://docs.amplify.aws/react/reference/cli-commands/#npx-ampx-generate I cannot find anyone else facing this problem elsewhere. I have been searching extensively.Reproduction steps
This is the command I'm running (with \ replaced), with the output: