Skip to content

Instantly share code, notes, and snippets.

@kavinarvind
Created August 16, 2021 22:13
Show Gist options
  • Save kavinarvind/685878ec4f25cbb46725a39df87b9bad to your computer and use it in GitHub Desktop.
Save kavinarvind/685878ec4f25cbb46725a39df87b9bad 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