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

terraform init errors #7

Open
juergenschubert opened this issue Apr 5, 2021 · 1 comment
Open

terraform init errors #7

juergenschubert opened this issue Apr 5, 2021 · 1 comment

Comments

@juergenschubert
Copy link

juergen@Juergens-Mini /tmp % git clone https://github.com/christopherhein/terraform-eks.git
Cloning into 'terraform-eks'...
remote: Enumerating objects: 30, done.
remote: Total 30 (delta 0), reused 0 (delta 0), pack-reused 30
Unpacking objects: 100% (30/30), done.
juergen@Juergens-Mini /tmp % cd terraform-eks
juergen@Juergens-Mini terraform-eks % cd cluster
juergen@Juergens-Mini cluster % terraform version
Terraform v0.14.8

Your version of Terraform is out of date! The latest version
is 0.14.9. You can update by downloading from https://www.terraform.io/downloads.html
juergen@Juergens-Mini cluster % terraform init

Initializing the backend...

Initializing provider plugins...

  • Finding hashicorp/aws versions matching "~> 1.24"...
  • Finding hashicorp/http versions matching "~> 1.0"...
  • Installing hashicorp/http v1.2.0...
  • Installed hashicorp/http v1.2.0 (signed by HashiCorp)

Warning: Interpolation-only expressions are deprecated

on eks-cluster.tf line 29, in resource "aws_iam_role_policy_attachment" "demo-cluster-AmazonEKSClusterPolicy":
29: role = "${aws_iam_role.demo-cluster.name}"

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

Warning: Quoted references are deprecated

on eks-cluster.tf line 84, in resource "aws_eks_cluster" "demo":
84: "aws_iam_role_policy_attachment.demo-cluster-AmazonEKSClusterPolicy",

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.

(and one more similar warning elsewhere)

Warning: Version constraints inside provider configuration blocks are deprecated

on providers.tf line 7, in provider "aws":
7: version = "~> 1.24"

Terraform 0.13 and earlier allowed provider version constraints inside the
provider configuration block, but that is now deprecated and will be removed
in a future version of Terraform. To silence this warning, move the provider
version constraint into the required_providers block.

(and one more similar warning elsewhere)

Warning: Quoted type constraints are deprecated

on variables.tf line 7, in variable "cluster-name":
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. To silence this warning, remove the quotes around "string".

Error: Incompatible provider version

Provider "hashicorp/aws" v1.60.0 is not compatible with Terraform 0.14.8.
Provider version 3.35.0 is the latest compatible version. Select it with the
following version constraint:
version = "3.35.0"

Terraform checked all of the plugin versions matching the given constraint:
~> 1.24

Consult the documentation for this provider for more information on
compatibility between provider and Terraform versions.

@christopherhein
Copy link
Owner

Ooops, @juergenschubert this repo is very out of date and I'm not able to support this anymore. If you'd like to contribute patches I'd happily accept PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants