cloudposse / cloudposse/terraform-aws-lambda-function
Warning: Deprecated attribute
- Vorherrschende Sprache
- HCL
- Sterne
- 36
- Forks
- 44
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
### 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_
Beitragsleitfaden
Rechercherichtung
Beginne bei .terraform/modules/lambda/main.tf Zeile 5, wo die Ressource aws_region das veraltete Attribut name verwendet. Aktualisiere das Attribut gemäß den Regionsrichtlinien des AWS provider und führe anschließend Terraform mit einer neuen Version des AWS provider aus; die Aufgabe ist erledigt, wenn die Deprecation-Warnung nicht mehr erscheint.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- aws, terraform
- Bereich
- cloud, infrastructure
- Issue-Typ
- Bug
- Schwierigkeit
- 1/5
- Geschätzter Aufwand
- Unter einer Stunde
- Aktivitätsstatus
- Veraltet
- Klarheit
- Klar beschrieben
- Anfängerfreundlichkeit
- 55/100