amazon-archives / aws-media-services-workflow-composer

Create flexible, intelligent file-based video workflows on AWS using dynamic rules.
Apache License 2.0
12 stars 5 forks source link

cloudformation rollback: no export named reinvent-vod: source found #1

Open aburkleaux-amazon opened 5 years ago

aburkleaux-amazon commented 5 years ago

I tried to install VOD dynamic encoding rule from Github https://github.com/aws-samples/aws-media-services-workflow-composer/blob/master/RuleBasedEncoding/README.md

I tried coupled of time by re-installing the VOD On Demand stack with different name. The dynamic rule Cloudformation template responded as “roll back” even I used the VOD On Demand stack name as reinvent-vod. The rollback status reason shown “no export named reinvent-vod: source found” but the reinvent-vod stack does exist and it works for file transcoding, see attachments.

Can you advice on this issue?

aburkleaux-amazon commented 5 years ago

There is a dependency on the lab version of the Video on Demand on AWS that is not published in the current version on AWS Answers. Replacing the outputs of the Video on Demand on AWS cloudfomration with the following Outputs section will fix the problem. Or, use the lab cloudformation included below.

Outputs:
  DynamoDBTable:
    Description: DynamoDB Table
    Value: !Ref DynamoDBTable
    Export:
      Name: !Join [ ":", [ !Ref "AWS::StackName", DynamoDBTable ] ]

  Source:
    Description: Source Bucket
    Value: !Ref Source
    Export:
      Name: !Join [ ":", [ !Ref "AWS::StackName", Source ] ]

  Destination:
    Description: Destination Bucket
    Value: !Ref Destination
    Export:
      Name: !Join [ ":", [ !Ref "AWS::StackName", Destination ] ]

  CloudFront:
    Description: CloudFront Domain Name
    Value: !GetAtt CloudFront.DomainName
    Export:
      Name: !Join [ ":", [ !Ref "AWS::StackName", CloudFront ] ]

  UUID:
    Condition: Metrics
    Description: AnonymousMetric UUID
    Value: !GetAtt Uuid.UUID
    Export:
      Name: !Join [ ":", [ !Ref "AWS::StackName", UUID ] ]

The lab version of the VOD on AWS template is located here:

https://s3-eu-west-1.amazonaws.com/decepticons-eu-west-1/video-on-demand-on-aws/reinvent/video-on-demand-on-aws.yaml)

I'll leave this issue open until we get the fix in this project or the Video on Demand on AWS Cloudformation.