Skip to content

Error: Invalid quoted type constraints #23

@jason-riddle

Description

@jason-riddle

Describe the Bug

This module appears to be incompatible with terraform 0.13.0 and above. Attempting to run terraform init with the following main.tf file

module "aws_iam_assumed_roles" {
  source  = "cloudposse/iam-assumed-roles/aws"
  version = "0.6.0"
  enabled = false
}

Shows 17 "Invalid quoted type constraints" error messages.

Expected Behavior

Should be able to run terraform init without any error messages.

Steps to Reproduce

  1. Include a terraform snippet with the following
module "aws_iam_assumed_roles" {
  source  = "cloudposse/iam-assumed-roles/aws"
  version = "0.6.0"
  enabled = false
}
  1. run terraform init

  2. Review the console output and notice the "Invalid quoted type constraints" message

There are some problems with the configuration, described below.

The Terraform configuration must be valid before initialization so that
Terraform can determine which modules and providers need to be installed.
╷
│ Error: Invalid quoted type constraints
│ 
│   on .terraform/modules/aws_iam_assumed_roles.admin_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. Remove the quotes around "string".
╵

╷
│ Error: Invalid quoted type constraints
│ 
│   on .terraform/modules/aws_iam_assumed_roles.admin_label/variables.tf line 25, in variable "attributes":
│   25:   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. Remove the quotes around "list" and write list(string) instead to
│ explicitly indicate that the list elements are strings.
╵

╷
│ Error: Invalid quoted type constraints
│ 
│   on .terraform/modules/aws_iam_assumed_roles.admin_label/variables.tf line 31, in variable "tags":
│   31:   type        = "map"
│ 
│ 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. Remove the quotes around "map" and write map(string) instead to
│ explicitly indicate that the map elements are strings.
╵

╷
│ Error: Invalid quoted type constraints
│ 
│   on .terraform/modules/aws_iam_assumed_roles.readonly_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. Remove the quotes around "string".
╵

╷
│ Error: Invalid quoted type constraints
│ 
│   on .terraform/modules/aws_iam_assumed_roles.readonly_label/variables.tf line 25, in variable "attributes":
│   25:   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. Remove the quotes around "list" and write list(string) instead to
│ explicitly indicate that the list elements are strings.
╵

╷
│ Error: Invalid quoted type constraints
│ 
│   on .terraform/modules/aws_iam_assumed_roles.readonly_label/variables.tf line 31, in variable "tags":
│   31:   type        = "map"
│ 
│ 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. Remove the quotes around "map" and write map(string) instead to
│ explicitly indicate that the map elements are strings.
╵

╷
│ Error: Invalid quoted type constraints
│ 
│   on .terraform/modules/aws_iam_assumed_roles/variables.tf line 2, in variable "namespace":
│    2:   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. Remove the quotes around "string".
╵

╷
│ Error: Invalid quoted type constraints
│ 
│   on .terraform/modules/aws_iam_assumed_roles/variables.tf line 7, in variable "enabled":
│    7:   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. Remove the quotes around "string".
╵

╷
│ Error: Invalid quoted type constraints
│ 
│   on .terraform/modules/aws_iam_assumed_roles/variables.tf line 13, in variable "stage":
│   13:   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. Remove the quotes around "string".
╵

╷
│ Error: Invalid quoted type constraints
│ 
│   on .terraform/modules/aws_iam_assumed_roles/variables.tf line 18, in variable "delimiter":
│   18:   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. Remove the quotes around "string".
╵

╷
│ Error: Invalid quoted type constraints
│ 
│   on .terraform/modules/aws_iam_assumed_roles/variables.tf line 24, in variable "attributes":
│   24:   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. Remove the quotes around "list" and write list(string) instead to
│ explicitly indicate that the list elements are strings.
╵

╷
│ Error: Invalid quoted type constraints
│ 
│   on .terraform/modules/aws_iam_assumed_roles/variables.tf line 30, in variable "tags":
│   30:   type        = "map"
│ 
│ 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. Remove the quotes around "map" and write map(string) instead to
│ explicitly indicate that the map elements are strings.
╵

╷
│ Error: Invalid quoted type constraints
│ 
│   on .terraform/modules/aws_iam_assumed_roles/variables.tf line 36, in variable "admin_name":
│   36:   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. Remove the quotes around "string".
╵

╷
│ Error: Invalid quoted type constraints
│ 
│   on .terraform/modules/aws_iam_assumed_roles/variables.tf line 42, in variable "readonly_name":
│   42:   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. Remove the quotes around "string".
╵

╷
│ Error: Invalid quoted type constraints
│ 
│   on .terraform/modules/aws_iam_assumed_roles/variables.tf line 48, in variable "admin_user_names":
│   48:   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. Remove the quotes around "list" and write list(string) instead to
│ explicitly indicate that the list elements are strings.
╵

╷
│ Error: Invalid quoted type constraints
│ 
│   on .terraform/modules/aws_iam_assumed_roles/variables.tf line 54, in variable "readonly_user_names":
│   54:   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. Remove the quotes around "list" and write list(string) instead to
│ explicitly indicate that the list elements are strings.
╵

╷
│ Error: Invalid quoted type constraints
│ 
│   on .terraform/modules/aws_iam_assumed_roles/variables.tf line 60, in variable "switchrole_url":
│   60:   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. Remove the quotes around "string".
╵

Screenshots

No response

Environment

  • OS: OSX
  • OSX Version: 12.6.3
  • Module Version: 0.6.0
  • Terraform Version: 1.3.9

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug🐛 An issue with the system

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions