aws-amplify / amplify-studio

AWS Amplify Studio (Formerly Admin UI)
136 stars 31 forks source link

Support Deployment from Admin UI When Using Plugins #365

Open djsjr opened 2 years ago

djsjr commented 2 years ago

Is your feature request related to a problem? Please describe. Added amplify video plugin to my app, which causes deployment fail when deploying from data modeling tab. I cannot edit my content until I deploy, however, causing a major problem. See awslabs/amplify-video#322 for original issue.

"Parameters: [secretPemArn, secretPem, publicKey, rPublicName, publicKeyName] must have values ."

Command failed with exit code 1: /root/.amplify/bin/amplify push --yes --allow-destructive-graphql-schema-updates
- Fetching updates to backend environment: dev from the cloud.
✔ Successfully pulled backend environment dev from the cloud.
- Uploading files...
- Updating resources in the cloud. This may take a few minutes...
✖ An error occurred when pushing the resources to the cloud
⚠️ Amplify command hooks are disabled in the current execution environment.
⚠️ See https://docs.amplify.aws/cli/usage/command-hooks/ for more information.

    Current Environment: dev
    
┌──────────┬─────────────────────┬───────────┬───────────────────┐
│ Category │ Resource name       │ Operation │ Provider plugin   │
├──────────┼─────────────────────┼───────────┼───────────────────┤
│ Api      │ seeapp              │ Update    │ awscloudformation │
├──────────┼─────────────────────┼───────────┼───────────────────┤
│ Auth     │ seeAppAuth          │ No Change │ awscloudformation │
├──────────┼─────────────────────┼───────────┼───────────────────┤
│ Auth     │ userPoolGroups      │ No Change │ awscloudformation │
├──────────┼─────────────────────┼───────────┼───────────────────┤
│ Storage  │ seeAppStorage       │ No Change │ awscloudformation │
├──────────┼─────────────────────┼───────────┼───────────────────┤
│ Video    │ seeStreamingContent │ No Change │ awscloudformation │
├──────────┼─────────────────────┼───────────┼───────────────────┤
│ Function │ seeAppAuthPreSignup │ No Change │ awscloudformation │
└──────────┴─────────────────────┴───────────┴───────────────────┘
GraphQL schema compiled successfully.

Edit your schema at /tmp/amplify-1694e97b-abd4-48b8-be81-eec7c4eab134/amplify/backend/api/seeapp/schema.graphql or place .graphql files in a directory at /tmp/amplify-1694e97b-abd4-48b8-be81-eec7c4eab134/amplify/backend/api/seeapp/schema

UPDATE_IN_PROGRESS amplify-seeapp-dev-142705 AWS::CloudFormation::Stack Sun Nov 14 2021 19:05:45 GMT+0000 (Coordinated Universal Time) User Initiated

UPDATE_IN_PROGRESS videoseeStreamingContent AWS::CloudFormation::Stack Sun Nov 14 2021 19:05:50 GMT+0000 (Coordinated Universal Time) 

UPDATE_IN_PROGRESS          storageseeAppStorage        AWS::CloudFormation::Stack Sun Nov 14 2021 19:05:51 GMT+0000 (Coordinated Universal Time)                                                                                                                     
UPDATE_IN_PROGRESS          authseeAppAuth              AWS::CloudFormation::Stack Sun Nov 14 2021 19:05:51 GMT+0000 (Coordinated Universal Time)                                                                                                                     
UPDATE_IN_PROGRESS          functionseeAppAuthPreSignup AWS::CloudFormation::Stack Sun Nov 14 2021 19:05:51 GMT+0000 (Coordinated Universal Time)                                                                                                                     
UPDATE_FAILED               videoseeStreamingContent    AWS::CloudFormation::Stack Sun Nov 14 2021 19:05:51 GMT+0000 (Coordinated Universal Time) Parameters: [secretPemArn, secretPem, publicKey, rPublicName, publicKeyName] must have values                       
UPDATE_COMPLETE             storageseeAppStorage        AWS::CloudFormation::Stack Sun Nov 14 2021 19:05:51 GMT+0000 (Coordinated Universal Time)                                                                                                                     
UPDATE_FAILED               functionseeAppAuthPreSignup AWS::CloudFormation::Stack Sun Nov 14 2021 19:05:52 GMT+0000 (Coordinated Universal Time) Resource update cancelled                                                                                           
UPDATE_FAILED               authseeAppAuth              AWS::CloudFormation::Stack Sun Nov 14 2021 19:05:52 GMT+0000 (Coordinated Universal Time) Resource update cancelled                                                                                           
UPDATE_ROLLBACK_IN_PROGRESS amplify-seeapp-dev-142705   AWS::CloudFormation::Stack Sun Nov 14 2021 19:05:53 GMT+0000 (Coordinated Universal Time) The following resource(s) failed to update: [authseeAppAuth, functionseeAppAuthPreSignup, videoseeStreamingContent].

UPDATE_COMPLETE    authseeAppAuth              AWS::CloudFormation::Stack Sun Nov 14 2021 19:06:08 GMT+0000 (Coordinated Universal Time) 
UPDATE_IN_PROGRESS storageseeAppStorage        AWS::CloudFormation::Stack Sun Nov 14 2021 19:06:08 GMT+0000 (Coordinated Universal Time) 
UPDATE_COMPLETE    videoseeStreamingContent    AWS::CloudFormation::Stack Sun Nov 14 2021 19:06:08 GMT+0000 (Coordinated Universal Time) 
UPDATE_COMPLETE    functionseeAppAuthPreSignup AWS::CloudFormation::Stack Sun Nov 14 2021 19:06:08 GMT+0000 (Coordinated Universal Time) 
UPDATE_COMPLETE    storageseeAppStorage        AWS::CloudFormation::Stack Sun Nov 14 2021 19:06:08 GMT+0000 (Coordinated Universal Time) 

UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS amplify-seeapp-dev-142705   AWS::CloudFormation::Stack Sun Nov 14 2021 19:06:11 GMT+0000 (Coordinated Universal Time) 
UPDATE_COMPLETE                              functionseeAppAuthPreSignup AWS::CloudFormation::Stack Sun Nov 14 2021 19:06:12 GMT+0000 (Coordinated Universal Time) 
UPDATE_COMPLETE                              authseeAppAuth              AWS::CloudFormation::Stack Sun Nov 14 2021 19:06:12 GMT+0000 (Coordinated Universal Time) 
UPDATE_COMPLETE                              videoseeStreamingContent    AWS::CloudFormation::Stack Sun Nov 14 2021 19:06:12 GMT+0000 (Coordinated Universal Time) 
UPDATE_COMPLETE                              storageseeAppStorage        AWS::CloudFormation::Stack Sun Nov 14 2021 19:06:12 GMT+0000 (Coordinated Universal Time) 
UPDATE_ROLLBACK_COMPLETE                     amplify-seeapp-dev-142705   AWS::CloudFormation::Stack Sun Nov 14 2021 19:06:13 GMT+0000 (Coordinated Universal Time) 

Following resources failed

🛑 An error occurred during the push operation: Resource is not in the state stackUpdateComplete

Describe the solution you'd like Successful deployment with added plugins.

Describe alternatives you've considered Removing video plugin and using another means to serve video streams.

Additional context Since the video streams need to be protected, this plugin is the best way to integrate video streaming into my app. I shouldn't have to lose my admin UI abilities because a plugin exists

pananapread commented 2 years ago

Hi @djsjr thank you so much for pointing this out! We have added a feature-request label to this as this is expected and will require further work on our side. Stay tuned!

djsjr commented 2 years ago

@pananapread Glad to see amplify studio released! Any update on this feature? Thanks