Created
August 16, 2021 22:13
-
-
Save kavinarvind/685878ec4f25cbb46725a39df87b9bad to your computer and use it in GitHub Desktop.
AWS Fargate SSM Document
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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