Missing required key "appId" in params when running hosting add
See original GitHub issueNote: If your question is regarding the AWS Amplify Console service, please log it in the official AWS Amplify Console forum
I’m trying to deploy my nextjs app to amplify following the steps here https://www.youtube.com/watch?v=7VDdgKXAAP0, but stuck with Missing required key 'appId' in params
error when runing amplify hosting add
. I’ve tried to amplify init --appId <ID>
but doesn’t resolve the error
Missing required key 'appId' in params
MissingRequiredParameter: Missing required key 'appId' in params
at ParamValidator.fail (/Users/xxx/.nvm/versions/node/v12.16.2/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/param_validator.js:50:37)
at ParamValidator.validateStructure (/Users/xxx/.nvm/versions/node/v12.16.2/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/param_validator.js:61:14)
at ParamValidator.validateMember (/Users/xxx/.nvm/versions/node/v12.16.2/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/param_validator.js:88:21)
at ParamValidator.validate (/Users/xxx/.nvm/versions/node/v12.16.2/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/param_validator.js:34:10)
at Request.VALIDATE_PARAMETERS (/Users/xxx/.nvm/versions/node/v12.16.2/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/event_listeners.js:126:42)
at Request.callListeners (/Users/xxx/.nvm/versions/node/v12.16.2/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/sequential_executor.js:106:20)
at callNextListener (/Users/xxx/.nvm/versions/node/v12.16.2/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/sequential_executor.js:96:12)
at /Users/xxx/.nvm/versions/node/v12.16.2/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/event_listeners.js:86:9
at finish (/Users/xxx/.nvm/versions/node/v12.16.2/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/config.js:386:7)
at /Users/xxx/.nvm/versions/node/v12.16.2/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/config.js:404:9
Which Category is your question related to?
Amplify CLI Version 4.24.3
You can use amplify -v
to check the amplify cli version on your system
What AWS Services are you utilizing?
Provide additional details e.g. code snippets
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Aws Amplify Missing Required Key 'Appid' In Params - ADocLib
I trying to deploy an app on AWS amplify but I run the command amplify add hosting I get this error : Missing...
Read more >AWS Amplify MissingRequiredParameter userId error
It looks like Interactions is expecting a userId param, which in @aws-amplify/interactions/lib/Providers/AWSLexProvider.js , is supposed to be ...
Read more >Environment variables - AWS Amplify Hosting
Environment variables are key-value pairs that are available at build time. These configurations can be anything, including the following:
Read more >Missing required key 'Bucket' in params - Seed.run
Serverless Framework creates an S3 bucket to store the deployment artifacts for your Serverless application. This error usually happens if the first serverless ......
Read more >Prebid Server Bidder Params for Header Bidding
“Send All Bids” Ad Server Keys, Used for sending all bids to the ad server, as described ... Bid Params, Ad request parameters...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m not able to reproduce the bug, @nikhname check to see if you’ve created more than 25 Amplify Console project, if that’s the case, the
amplify init
command won’t be able to create new Amplify Console project for you, so there won’t a fieldAmplifyAppId
in the amplify-meta.json file, then you won’t be able to add amplify console hosting. @Adonais0 In what AWS region did you initialize your amplify project? (you should be able to find the region in the profile you selected when runningamplify init
). If you init your project in a region that does not have Amplify Console support, you won’t be able to add Amplify Console hosting. Check the<project-root>/amplify/backend/amplify-meta.json
file, see if there is anAmplifyAppId
field.This issue has been automatically locked since there hasn’t been any recent activity after it was closed. Please open a new issue for related bugs.
Looking for a help forum? We recommend joining the Amplify Community Discord server
*-help
channels for those types of questions.