Skip to content

Warning: Interpolation-only expressions, Quoted references & Quoted type constraints are deprecated #7

@Simonl9l

Description

@Simonl9l

with

terraform --version
Terraform v0.14.5
+ provider registry.terraform.io/hashicorp/aws v3.21.0
+ provider registry.terraform.io/hashicorp/local v2.0.0
+ provider registry.terraform.io/hashicorp/random v3.0.1
+ provider registry.terraform.io/terraform-providers/mysql v1.9.0

module "secret-manager-with-rotation" {
  source  = "giuseppeborgese/secret-manager-with-rotation/aws"
  version = "1.0.2"
...
}

after terraform init

Warning: Interpolation-only expressions are deprecated

  on .terraform/modules/secret-manager-with-rotation/main.tf line 4, in data "aws_subnet" "firstsub":
   4: data "aws_subnet" "firstsub" {  id = "${var.subnets_lambda[0]}" }

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.

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 16 more similar warnings elsewhere)


Warning: Quoted references are deprecated

  on .terraform/modules/secret-manager-with-rotation/main.tf line 248, in resource "aws_secretsmanager_secret_version" "secret":
 248:       "secret_string"

In this context, references are expected literally rather than in quotes.
Terraform 0.11 and earlier required quotes, but quoted references are now
deprecated and will be removed in a future version of Terraform. Remove the
quotes surrounding this reference to silence this warning.


Warning: Quoted type constraints are deprecated

  on .terraform/modules/secret-manager-with-rotation/variables.tf line 13, in variable "subnets_lambda":
  13:   type = "list"

Terraform 0.11 and earlier required type constraints to be given in quotes,
but that form is now deprecated and will be removed in a future version of
Terraform. To silence this warning, remove the quotes around "list" and write
list(string) instead to explicitly indicate that the list elements are
strings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions