cloudposse / cloudposse/terraform-aws-lambda-function

Warning: Deprecated attribute

未关闭
#89 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
HCL
星标
36
派生
44
PR 合并指标
30 天内没有已合并 PR

描述

### Describe the Bug

Execution of the module is generating a deprecation warning as the AWS provider is deprecating `name` in favor of `region` for the `aws_region` resource.
```
│ Warning: Deprecated attribute

│ on .terraform/modules/lambda/main.tf line 5, in locals:
│ 5: region_name = local.enabled ? data.aws_region.this[0].name : null

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

### Expected Behavior

Should not get the deprecation warning if running with a new AWS provider version.

### Steps to Reproduce

Any terraform ran with a new AWS provider version

### Screenshots

_No response_

### Environment

_No response_

### Additional Context

_No response_

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。