Skip to content

Wrong usage of "data.aws_region" #5

@jbbarth

Description

@jbbarth

When using your module, I get this error:

│ Error: Unsupported attribute
│
│   on .terraform/modules/otel_collector/deployment.tf line 98, in resource "aws_ecs_task_definition" "otel_collector":
│   98:           awslogs-region        = data.aws_region.current.region
│
│ This object has no argument, nested block, or exported attribute named
│ "region".

This should be data.aws_region.current.name I think ("name", not "region")

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