-
-
Notifications
You must be signed in to change notification settings - Fork 614
Description
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:
noExpected 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)