How to create a Delete flow for AWS MediaConnect, MediaLive, MediaPackage and CloudFront?

0

Hi, I want to create a delete resources function which can delete AWS MediaConnect Flow, MediaLive Channel then MediaLive Inputs, MediaPackage Endpoints then MediaPackage Channel, Disable CloudFront distribution and then delete it using JS v3 SDK.

If i make separate calls for each deletion, the MediaLive inputs wont delete as they can only be deleted once the channel they are attached to has been deleted. MediaPackage channel also has the same issue as the endpoint has to be deleted first.

Is there a way I can delete them one by one or event based for dependent calls, as some of the calls are dependent on others.

1 回答
0

In this CloudFormation Template you have a Step Function that will delete the Medialive and MediaPackage resources. https://github.com/aws-samples/aws-elemental-media-services-factory/blob/master/cfn-template.yaml

The diagram for the step function is shown here: https://github.com/aws-samples/aws-elemental-media-services-factory/blob/master/docs/diagram.png

You just need to change the step function to cater for your use case.

AWS
Nuno_Q
已回答 8 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则