pablokbs / peladonerd

Repo con los archivos que uso para mi videos en youtube
2.04k stars 1.33k forks source link

Interpolation syntax is deprecated after terraform 0.11 #135

Closed juanyque closed 3 years ago

juanyque commented 3 years ago

Al lanzar terraform initcon terraform 0.14.6 se produce el siguiente Waening:

Warning: Interpolation-only expressions are deprecated

  on 01_ssh_key.tf line 6, in resource "digitalocean_ssh_key" "pelado":
   6:   public_key = "${file("id_rsa.pub")}"

Terraform 0.11 and earlier required all non-constant expressions to be
provided via interpolation syntax, but this pattern is now deprecated. To
silence this warning, remove the "${ sequence from the start and the }"
sequence from the end of this expression, leaving just the inner expression.

terraform {
Template interpolation syntax is still used to construct strings from
expressions when the template includes multiple interpolation sequences or a
mixture of literal strings and interpolations. This deprecation applies only
to templates that consist entirely of a single interpolation sequence.

(and 5 more similar warnings elsewhere)
kevorojas commented 3 years ago

En las últimas versiones de terraform puedes colocar la sintaxis de esta forma: public_key = File("id_rsa.pub")

stale[bot] commented 3 years ago

Este issue se ha marcado automágicamente como "stale" porque no ha tenido actividad reciente. Va a ser cerrado si no se ve actividad nueva. Intentá hacer tu pregunta en Slack. Gracias por sus contribuciones.

pablokbs commented 3 years ago

Gracias!