Skip to content

Commit

Permalink
fix: remove deprecated hashicorp/template provider
Browse files Browse the repository at this point in the history
- in m1 macos, cannot initialize eks-blue/green stacks in the
  blue-green-upgrade pattern
```sh
$ cd patterns/eks-blue-green-upgrade/eks-blue
$ terraform init
...
╷
│ Error: Incompatible provider version
│
│ Provider registry.terraform.io/hashicorp/template v2.2.0 does not have a package available for your current platform, darwin_arm64.
│
│ Provider releases are separate from Terraform CLI releases, so not all providers are available for all platforms. Other versions of this
│ provider may have different platforms supported.
╵
```
- the hashicorp/template provider is deprecated
  and not supported in m1 macos
  - ref. https://discuss.hashicorp.com/t/template-v2-2-0-does-not-have-a-package-available-mac-m1/35099
- also the provider is not used in the module
  - it seems was added at #1769(2e09cf8) for debugging
  - the output for debugging is commented out; not used
- removed deprecated, unused hashicorp/template provider
- removed the comments in output

Signed-off-by: flavono123 <[email protected]>
  • Loading branch information
flavono123 committed Dec 12, 2023
1 parent aa8222b commit a1cb95b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
7 changes: 0 additions & 7 deletions patterns/blue-green-upgrade/modules/eks_cluster/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,3 @@ output "gitops_metadata" {
value = local.addons_metadata
sensitive = true
}

# output "debug" {
# description = "debug output"
# #value = data.template_file.addons_template.rendered
# value = data.template_file.workloads_template.rendered
# #value = file("${path.module}/../../bootstrap/addons.yaml")
# }
4 changes: 0 additions & 4 deletions patterns/blue-green-upgrade/modules/eks_cluster/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,5 @@ terraform {
source = "hashicorp/kubernetes"
version = "2.22.0"
}
template = {
source = "hashicorp/template"
version = ">= 2.2.0"
}
}
}

0 comments on commit a1cb95b

Please sign in to comment.