Terraform-provider-aws: ECS clusters: enable Container Insights

Created on 10 Jul 2019  ·  6Comments  ·  Source: hashicorp/terraform-provider-aws

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

ECS clusters have an optional Container Insights feature, which can be enabled on a per-cluster basis in CreateCluster API call.

This enables more CloudWatch metrics to be recorded about the running services and tasks. It should be possible to enable this in aws_ecs_cluster resources.

New or Affected Resource(s)

  • aws_ecs_cluster

Potential Terraform Configuration

resource "aws_ecs_cluster" "foo" {
  name               = "white-hart"
  container_insights = true
}

References

  • https://aws.amazon.com/about-aws/whats-new/2019/07/introducing-container-insights-for-ecs-and-aws-fargate-in-preview/

  • docs.aws.amazon.com: Setting Up Container Insights on Amazon ECS
  • API: CreateCluster settings
  • enhancement servicecs

    Most helpful comment

    Amazon CloudWatch Container Insights is now GA.
    Announcement.
    Blog post.

    All 6 comments

    Needs v1.21.0 aws sdk

    Hi, let me try

    Amazon CloudWatch Container Insights is now GA.
    Announcement.
    Blog post.

    Support for a new setting configuration block in the aws_ecs_cluster resource has been merged and will release with version 2.27.0 of the Terraform AWS Provider, tomorrow. 👍 Thanks to @chaspy and @stack72 for their implementation work.

    This has been released in version 2.27.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

    For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!

    I'm going to lock this issue because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues.

    If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

    Was this page helpful?
    0 / 5 - 0 ratings