-
-
Save filipeandre/77ce35f9cd7c17c30681f9acc09876ef 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