cloudposse / cloudposse/terraform-aws-lambda-function
Warning: Deprecated attribute
- Langage dominant
- HCL
- Étoiles
- 36
- Forks
- 44
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
### 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_
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez à la ligne 5 de .terraform/modules/lambda/main.tf, où la ressource aws_region utilise l’attribut obsolète name. Mettez à jour l’attribut conformément aux indications de AWS provider concernant les régions, puis exécutez Terraform avec une nouvelle version de AWS provider ; c’est terminé lorsque l’avertissement de dépréciation n’apparaît plus.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- aws, terraform
- Domaine
- cloud, infrastructure
- Type d'issue
- Bug
- Difficulté
- 1/5
- Temps estimé
- Moins d'une heure
- Activité
- À l'abandon
- Clarté
- Clairement spécifiée
- Accessibilité débutants
- 55/100