An open source Category Plugin for the AWS Amplify-CLI that makes it easy to deploy live and file based streaming video services and integrate them into your Amplify applications.
Installed amplify-video with yarn global add amplify-category-video in a Create React App.
To Reproduce
Steps to reproduce the behavior:
Run amplify video add
Choose Video-on-Demand
Choose Default HLS+DASH Adaptive Bitrate
n for notifications
y for production environment
y for signed URLs
n for GraphQL
It will say All resources built. Then I enter amplify push.
An error is returned:
Following resources failed
Resource Name: rCloudFrontPublicKeystagingatqghjwg (AWS::CloudFront::PublicKey)
Event Type: create
Reason: Resource handler returned message: "Access denied for operation 'AWS::CloudFront::PublicKey'."
**Expected behavior**
Expect the command to succeed without an error.
**Desktop (please complete the following information):**
- OS: [macOS 11.6.4]
- Version [amplify CLI 7.6.25]
**Additional context**
If I try without requesting signed URLs, it will succeed*.
*Up until I wrote this post, this would also fail with an error message. What I ended up doing is taking the policy linked here https://github.com/awslabs/amplify-video/issues/175 for `Video on Demand`, and adding it as an inline-policy to the user pool referenced in the error message, in `IAM --> Roles `. After I did that and ran`amplify push` again, and I was able to create the VOD. I'm still not sure why it started wroking, but the only thing I can think of is I upgraded to the latest version of the Amplify CLI with `amplify upgrade`.
Describe the bug Adding amplify video with
amplify video add
fails because of a permissions errorPreconditions: `. I have an IAM account with Admin Access:
amplify-video
withyarn global add amplify-category-video
in a Create React App.To Reproduce Steps to reproduce the behavior:
amplify video add
Video-on-Demand
Default HLS+DASH Adaptive Bitrate
n
for notificationsy
for production environmenty
for signed URLsn
for GraphQLAll resources built
. Then I enteramplify push
.Resource Name: rCloudFrontPublicKeystagingatqghjwg (AWS::CloudFront::PublicKey) Event Type: create Reason: Resource handler returned message: "Access denied for operation 'AWS::CloudFront::PublicKey'."