Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/miquido/ecs-failed-deployment-check
https://github.com/miquido/ecs-failed-deployment-check
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/miquido/ecs-failed-deployment-check
- Owner: miquido
- Created: 2024-03-12T14:11:16.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-03-13T07:41:21.000Z (8 months ago)
- Last Synced: 2024-03-14T07:39:51.070Z (8 months ago)
- Language: HCL
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Checks ECS cluster if there are failing deployments. Notifies SNS topic when found
## Usage
```hcl
module "ecs_error_detection" {
source = "git::https://github.com/miquido/sns-notifications/ecs-failed-deployment-check"
ecs_cluster_id = "example-cluster"
environment = "exammple"
project = "example"
sns_topic_arn = "arn:aws:sns:eu-central-1:123456789012:example"
}
```## Requirements
No requirements.
## Providers
| Name | Version |
|------|---------|
| [archive](#provider\_archive) | n/a |
| [aws](#provider\_aws) | n/a |## Modules
No modules.
## Resources
| Name | Type |
|------|------|
| [aws_cloudwatch_event_rule.run_check](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_event_rule) | resource |
| [aws_cloudwatch_event_target.run_check](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_event_target) | resource |
| [aws_cloudwatch_log_group.ecs_error_detector](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_log_group) | resource |
| [aws_iam_role.ecs_error_detector](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role) | resource |
| [aws_iam_role_policy.ecs_error_detector](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy) | resource |
| [aws_lambda_function.ecs_error_detector](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lambda_function) | resource |
| [aws_lambda_permission.run_check](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lambda_permission) | resource |
| [archive_file.ecs_error_detector](https://registry.terraform.io/providers/hashicorp/archive/latest/docs/data-sources/file) | data source |
| [aws_caller_identity.default](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity) | data source |
| [aws_iam_policy_document.assume_role_ecs_error_detector](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |
| [aws_iam_policy_document.role_ecs_error_detector](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |
| [aws_region.default](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/region) | data source |## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [check\_cron](#input\_check\_cron) | Cron expression when to run checks | `string` | `"rate(1 hour)"` | no |
| [ecs\_cluster\_name](#input\_ecs\_cluster\_name) | ECS cluster name to be monitored | `string` | n/a | yes |
| [environment](#input\_environment) | Environment name | `string` | n/a | yes |
| [log\_retention](#input\_log\_retention) | How long to keep logs | `number` | `7` | no |
| [project](#input\_project) | Project name | `string` | n/a | yes |
| [sns\_topic\_arn](#input\_sns\_topic\_arn) | SNS topic where errors are sent | `string` | n/a | yes |
| [tags](#input\_tags) | Default tags to apply on all created resources | `map(string)` | `{}` | no |## Outputs
No outputs.
## Related Projects
Check out these related projects.
## License
```text
The MIT License (MIT)Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.Source:
```