Skip to content

Fix for Terraform 0.13 #7

@hongkongkiwi

Description

@hongkongkiwi

Using this with Terraform 0.13 produces a lot of warnings because the module uses the depreciated ways of handling things. e.g.

Warning: Interpolation-only expressions are deprecated

  on .terraform/modules/ssm_iam_role_chamber.label/main.tf line 2, in locals:
   2:   enabled    = "${var.enabled == "true" ? true : false }"

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


Warning: Quoted type constraints are deprecated

  on .terraform/modules/ssm_iam_role_chamber.label/variables.tf line 19, in variable "delimiter":
  19:   type        = "string"

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 "string".

(and 13 more similar warnings elsewhere)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions