cloudposse / cloudposse/terraform-aws-lambda-function

Warning: Deprecated attribute

Aperta
#89 0 commenti 1 reazione 0 assegnatari Vedi su GitHub
bug
Lingua principale
HCL
Stelle
36
Fork
44
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### 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_

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.