Skip to content

Deprecated attribute "name" in aws_region data block #24

@meraj-kashi

Description

@meraj-kashi

Versions:
terraform-aws-kosli-reporter: v0.8.2
Terraform: 1.13.1
AWS Terraform provider: 6.13.0

Issue description:
After upgrading the AWS Terraform provider from v5.x.x to v6.x.x, we are seeing a deprecation warning during terraform plan and apply:

Warning: Deprecated attribute

  on .terraform/modules/kosli_reporter.reporter_lambda/outputs.tf line 9, in output "lambda_function_arn_static":
   9:   value       = local.create && var.create_function && !var.create_layer ? "arn:aws:lambda:${data.aws_region.current.name}:${data.aws_caller_identity.current.account_id}:function:${var.function_name}" : ""

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

According to the Terraform documentation, the name attribute is deprecated and should be replaced with region. ref

Since the Kosli module is a wrapper around the terraform-aws-lambda module, it looks like the issue has already been resolved in releases greater than v8.0.0.

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