Files
Ruchika Modi 70405b9732 Adding Module and Example for ECS cluster monitoring with ecs_observer (#211)
* Adding Module and Example for ECS cluster monitoring with ecs_observer

* Adding Module and Example for ECS cluster monitoring with ecs_observer

* Incorporating PR comments

* Restructuring Examples and modules folder for ECS, Added content in main Readme

* Fixing path as per PR comments

* Parameterzing the config files, incorporated PR review comments

* Adding condition for AMP WS and fixing AMP endpoint

* Adding Document for ECS Monitoring and parameterized some variables

* Added sample dashboard

* Adding Document for ECS Monitoring and parameterized some variables

* Fixing failures detected by pre-commit

* Fixing failures detected by pre-commit

* Fixing failures detected by pre-commit

* Pre-commit fixes

* Fixing failures detected by pre-commit

* Fixing failures detected by pre-commit

* Pre-commit

* Fixing HIGH security alerts detected by pre-commit

* Fixing HIGH security alerts detected by pre-commit

* Fixing HIGH security alerts detected by pre-commit, 31stOct

* Add links after merge

* 2ndNov - Added condiotnal creation for Grafana WS and module versions for AMG, AMP

---------

Co-authored-by: Rodrigue Koffi <bonclay7@users.noreply.github.com>
2023-11-02 12:53:32 +01:00
..

ECS Cluster w/ EC2 Autoscaling

Configuration in this directory creates:

  • ECS cluster using EC2 autoscaling groups
  • Autoscaling groups with IAM instance profile to be used by ECS cluster
  • Example ECS service that utilizes
    • Mounts a host volume into the container definition
    • Load balancer target group attachment
    • Security group for access to the example service

Usage

To run this example you need to execute:

$ terraform init
$ terraform plan
$ terraform apply

Note that this example may create resources which will incur monetary charges on your AWS bill. Run terraform destroy when you no longer need these resources.

Requirements

Name Version
terraform >= 1.0
aws >= 4.55

Providers

Name Version
aws >= 4.55

Modules

Name Source Version
alb_sg terraform-aws-modules/security-group/aws ~> 5.0
autoscaling terraform-aws-modules/autoscaling/aws ~> 6.5
autoscaling_sg terraform-aws-modules/security-group/aws ~> 5.0
ecs_cluster terraform-aws-modules/ecs/aws 5.2.2
ecs_monitoring ../../modules/ecs-monitoring n/a
vpc terraform-aws-modules/vpc/aws ~> 5.0

Resources

Name Type
aws_availability_zones.available data source
aws_ssm_parameter.ecs_optimized_ami data source

Inputs

No inputs.

Outputs

No outputs.

License

Apache-2.0 Licensed. See LICENSE.