https://github.com/base2services/aws-lambda-ecs-container-instance-check
https://github.com/base2services/aws-lambda-ecs-container-instance-check
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/base2services/aws-lambda-ecs-container-instance-check
- Owner: base2Services
- License: mit
- Created: 2019-01-16T06:05:40.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-10-27T15:32:13.000Z (over 2 years ago)
- Last Synced: 2025-03-27T17:48:50.421Z (about 1 year ago)
- Language: Python
- Size: 9.77 KB
- Stars: 0
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ecs Container Instance AWS Lambda Check
Lambda function to check the agent status of a ECS cluster instance for a given cluster
Optionally, it can record metrics to CloudWatch.
## Inputs
All inputs are either defined as environment variables or as part of event data. Event data
will take priority over environment variables
`CLUSTER` - cluster name to be checked
`REPORT_AS_CW_METRICS` - set to 1 if you wish to store reported data as CW
custom metrics, 0 otherwise, defaults to 1
`CW_METRICS_NAMESPACE` - if CW custom metrics are being reported, this will determine
their namespace, defaults to 'EcsCICheck'
## Testing
Using sam cli local to test the function using the events in [tests](tests)
```bash
invoke test
```
## Deploy
Deploy using sam template
```bash
invoke deploy [s3 bucket] [stack name]
```