Skip to content

Instantly share code, notes, and snippets.

@filipeandre
Forked from kavinarvind/AWSFargate_SSM.yml
Created October 11, 2022 10:13
Show Gist options
  • Save filipeandre/77ce35f9cd7c17c30681f9acc09876ef to your computer and use it in GitHub Desktop.
Save filipeandre/77ce35f9cd7c17c30681f9acc09876ef to your computer and use it in GitHub Desktop.
AWS Fargate SSM Document
description: Triggers AWS Lambda Fargate Function
schemaVersion: '0.3'
parameters:
Region:
description: (Required) Name of the Region
type: String
default: us-east-1
Cluster:
description: (Required) Name of the ECS cluster
type: String
default: FargateCluster2
Service:
description: (Required) Name of the ECS Service
type: String
default: sample-app-service
Tasks:
description: (Required) Number of tasks to stop
type: String
mainSteps:
- inputs:
FunctionName: FargateTasks
Payload: '{"key1":"{{ Cluster }}","key2":"{{ Service }}","key3":"{{ Tasks }}","key4":"{{ Region }}"}'
name: InvokeLambda
action: 'aws:invokeLambdaFunction'
timeoutSeconds: 60
onFailure: Abort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment