Closed Arnav7501 closed 1 year ago
Hi @Arnav7501, thanks for opening this issue, since its related to the CLI, I'll transfer it over to the CLI repo for better assistance. Thanks1
My bad, made the issue in the wrong repo
Hey @Arnav7501 :wave: thanks for raising this! While the issue title alludes to an issue that is currently an active bug, I'm curious about this hostedUI
missing parameter. Would you mind sharing the project ID output from amplify diagnose --send-report
?
Project Identifier: 8741d2665676fac5a5554da0cf079d3b
Hey @Arnav7501 thanks for sending that over! Do you currently have an override applied to your auth resource?
not that i'm aware of
Hey @Arnav7501 looking at the report captured from diagnose the parameters and template seem fine for auth. If you visit the AWS CloudFormation Console and navigate to your project's root stack, are you able to see any errors from other resources? Were you able to recreate your GraphQL API key?
unfortunately, I'm still getting the same error these are the stacks that are failing
Hey @Arnav7501 if you drill into that API stack what is the error you're seeing there?
Hey @Arnav7501 can you try the workaround noted here to resolve the API key issue? https://github.com/aws-amplify/amplify-category-api/issues/636#issuecomment-1288164584
I already tried that workaround before opening the issue, gave the same error
Hey @Arnav7501 can you check for drift on your stack with the "Detect Drift" option under "Stack Actions" in the AWS CloudFormation console?
Hey @Arnav7501 what is the current status of the API key? Does your API currently have a valid API key? Taking a look at the files captured by diagnose I see hostedUI
is properly noted in the cli-inputs.json
and built CloudFormation template.
If you pull this project into a new sibling directory do you encounter the same issue?
Hey @Arnav7501 I wanted to follow-up here 🙂 are you still experiencing this?
Closing due to inactivity
Comments on closed issues are hard for our team to see. If you need more assistance, please 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.
Before opening, please confirm:
JavaScript Framework
React Native
Amplify APIs
Authentication, GraphQL API, DataStore
Amplify Categories
auth, storage, api
Environment information
Describe the bug
If I run amplify update api and update my api key, after running amplify push i get this error: Deployment failed. Deploying root stack SocialMediaApp [ ==========------------------------------ ] 1/4 amplify-socialmediaapp-stagin… AWS::CloudFormation::Stack UPDATE_ROLLBACK_COMPLETE_CLEA… apiSocialMediaApp AWS::CloudFormation::Stack UPDATE_FAILED
storages3socialmediaappstorag… AWS::CloudFormation::Stack UPDATE_COMPLETE
authSocialMediaApp AWS::CloudFormation::Stack UPDATE_FAILED
Deployed api SocialMediaApp [ ======================================== ] 13/13
🛑 The following resources failed to deploy: Resource Name: authSocialMediaApp (AWS::CloudFormation::Stack) Event Type: update Reason: Parameters: [hostedUI] do not exist in the template URL: https://console.aws.amazon.com/cloudformation/home?region=us-west-1#/stacks/arn%3Aaws%3Acloudformation%3Aus-west-1%3A340844696662%3Astack%2Famplify-socialmediaapp-staging-11043%2F37571350-394a-11ed-a0aa-0249e3d09a1d/events
🛑 Resource is not in the state stackUpdateComplete
I have tried every other method possible, from "CreateAPIKey": 0 to manually adding an API key in the graphql interface, and i checked the various methods online, but in the end the push always fails with this same error.
Expected behavior
I expected the API Key to rotate.
Reproduction steps
Code Snippet
Log output
aws-exports.js
No response
Manual configuration
/ eslint-disable / // WARNING: DO NOT EDIT. This file is automatically generated by AWS Amplify. It will be overwritten.
const awsmobile = { "aws_project_region": "us-west-1", "aws_appsync_graphqlEndpoint": "https://uzg65om2zndhtnwfa4qwnrgc7a.appsync-api.us-west-1.amazonaws.com/graphql", "aws_appsync_region": "us-west-1", "aws_appsync_authenticationType": "API_KEY", "aws_appsync_apiKey": "da2-zydyqxmcrnhojctvdnuijbaata", "aws_cognito_identity_pool_id": "us-west-1:c5ca7116-4e3c-4119-bac9-840c558ccde5", "aws_cognito_region": "us-west-1", "aws_user_pools_id": "us-west-1_KyYUYtU9h", "aws_user_pools_web_client_id": "70lpo834a3snibile7ksa4jp99", "oauth": {}, "aws_cognito_username_attributes": [], "aws_cognito_social_providers": [], "aws_cognito_signup_attributes": [ "NAME", "EMAIL" ], "aws_cognito_mfa_configuration": "OFF", "aws_cognito_mfa_types": [ "SMS" ], "aws_cognito_password_protection_settings": { "passwordPolicyMinLength": 7, "passwordPolicyCharacters": [] }, "aws_cognito_verification_mechanisms": [ "EMAIL" ], "aws_user_files_s3_bucket": "socialmediaapp-storage-8135690111043-staging", "aws_user_files_s3_bucket_region": "us-west-1" };
export default awsmobile;
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response