aws-amplify / aws-amplify/amplify-studio
Support Deployment from Admin UI When Using Plugins
- Dominant language
- No language data
- Stars
- 135
- Forks
- 32
- PR merge metrics
- No merged PRs in 30d
Description
**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.
[0m[0m
[0m Current Environment: dev[0m
[0m [0m
[90m┌──────────[39m[90m┬─────────────────────[39m[90m┬───────────[39m[90m┬───────────────────┐[39m
[90m│[39m Category [90m│[39m Resource name [90m│[39m Operation [90m│[39m Provider plugin [90m│[39m
[90m├──────────[39m[90m┼─────────────────────[39m[90m┼───────────[39m[90m┼───────────────────┤[39m
[90m│[39m Api [90m│[39m seeapp [90m│[39m Update [90m│[39m awscloudformation [90m│[39m
[90m├──────────[39m[90m┼─────────────────────[39m[90m┼───────────[39m[90m┼───────────────────┤[39m
[90m│[39m Auth [90m│[39m seeAppAuth [90m│[39m No Change [90m│[39m awscloudformation [90m│[39m
[90m├──────────[39m[90m┼─────────────────────[39m[90m┼───────────[39m[90m┼───────────────────┤[39m
[90m│[39m Auth [90m│[39m userPoolGroups [90m│[39m No Change [90m│[39m awscloudformation [90m│[39m
[90m├──────────[39m[90m┼─────────────────────[39m[90m┼───────────[39m[90m┼───────────────────┤[39m
[90m│[39m Storage [90m│[39m seeAppStorage [90m│[39m No Change [90m│[39m awscloudformation [90m│[39m
[90m├──────────[39m[90m┼─────────────────────[39m[90m┼───────────[39m[90m┼───────────────────┤[39m
[90m│[39m Video [90m│[39m seeStreamingContent [90m│[39m No Change [90m│[39m awscloudformation [90m│[39m
[90m├──────────[39m[90m┼─────────────────────[39m[90m┼───────────[39m[90m┼───────────────────┤[39m
[90m│[39m Function [90m│[39m seeAppAuthPreSignup [90m│[39m No Change [90m│[39m awscloudformation [90m│[39m
[90m└──────────[39m[90m┴─────────────────────[39m[90m┴───────────[39m[90m┴───────────────────┘[39m
[32mGraphQL schema compiled successfully.[39m
[32mEdit 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[39m
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
Contributor guide
Research direction
Start by reproducing the failure from the Admin UI data modeling tab with the amplify-video plugin, using the recorded `amplify push --yes --allow-destructive-graphql-schema-updates` command and the CloudFormation error about missing parameters. Review awslabs/amplify-video#322 for plugin context. Done means an Admin UI deployment succeeds without removing the plugin.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, graphql
- Domain
- cloud, devops
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100