Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Invalid quoted type constraints #23

Open
jason-riddle opened this issue May 21, 2023 · 0 comments
Open

Error: Invalid quoted type constraints #23

jason-riddle opened this issue May 21, 2023 · 0 comments
Labels
bug 🐛 An issue with the system

Comments

@jason-riddle
Copy link

jason-riddle commented May 21, 2023

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

@jason-riddle jason-riddle added the bug 🐛 An issue with the system label May 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 An issue with the system
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant