Skip to content

terraform-aws-ecs Warning: Deprecated attribute #298

@martinmarchisio-darwoft

Description

@martinmarchisio-darwoft

Description

This file modules/container-definition/main.tf
has a deprecated attribute, please find below the error:

Versions

  • Module version [Required]:

  • Terraform version:
    Terraform v1.12.2
    on linux_amd64

  • provider registry.terraform.io/hashicorp/aws v6.0.0

Reproduction Code [Required]

data "aws_region" "current" {}

locals {
is_not_windows = contains(["LINUX"], var.operating_system_family)

log_group_name = try(coalesce(var.cloudwatch_log_group_name, "/aws/ecs/${var.service}/${var.name}"), "")

log_configuration = merge(
{ for k, v in {
logDriver = "awslogs",
options = {
awslogs-region = data.aws_region.current.name,

Steps to reproduce the behavior:

no

Expected behavior

No warnings

Actual behavior

Warning: Deprecated attribute

│ on .terraform/modules/ecs_cluster/modules/container-definition/main.tf line 12, in locals:
│ 12: awslogs-region = data.aws_region.current.name,

│ The attribute "name" is deprecated. Refer to the provider documentation for details.

│ (and one more similar warning elsewhere)

Terminal Output Screenshot(s)

Warning: Deprecated attribute

│ on .terraform/modules/ecs_cluster/modules/container-definition/main.tf line 12, in locals:
│ 12: awslogs-region = data.aws_region.current.name,

│ The attribute "name" is deprecated. Refer to the provider documentation for details.

│ (and one more similar warning elsewhere)

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions