Skip to content

davidaavilar/fargate-defender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

Convert a unprotected task to a protected task Definition (Fargate)

This script help you to convert a YAML AWS CloudFormation with a Fargate Task Definition into a protected TaskDefinition with Prisma Cloud App-Embedded Defender for Fargate.

The script will find the resource with "AWS::ECS::TaskDefinition" in the Cloudformation and will add the Defender en every taskDefinition.

Pre-requisites 📋

  1. The script will ask for a YAML file name you have in the folder that you are running the script

  2. You have to udpate your Defender parameters. You can find them in the Console:

    tokenConsole = 'tokenConsole'

    wssConsole = 'wss://us-east1.cloud.twistlock.com:443'

    defenderImage = 'registry-auth.twistlock.com/tw_TOKEN/twistlock/defender:defender_21_04_421'

Output 🔧

The output will put a new filename ending with "protected".

References

How to protect a Fargate task defined in AWS CloudFormation YAML - (No automation)

https://github.com/erickrazr/PC_AWS_FARGATE_Clouformation

Collaborators

David Avila - @davidaavilar

Erick Ferreira - @erickrazr

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages