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 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南