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 Respuesta
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
respondido hace 8 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas