Skip to content

Commit

Permalink
Pin terraform provider hashes
Browse files Browse the repository at this point in the history
  • Loading branch information
malt3 committed Oct 24, 2022
1 parent c2814ae commit 8d6c9e2
Show file tree
Hide file tree
Showing 11 changed files with 212 additions and 8 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ image/config.mk
*.tfstate
*.tfstate.backup
.terraform
.terraform.lock.hcl
.terraform.tfstate.lock.info
*.tfvars

Expand Down
1 change: 1 addition & 0 deletions cli/internal/terraform/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (
)

//go:embed terraform/*
//go:embed terraform/*/.terraform.lock.hcl
var terraformFS embed.FS

// prepareWorkspace loads the embedded Terraform files,
Expand Down
50 changes: 50 additions & 0 deletions cli/internal/terraform/terraform/aws/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cli/internal/terraform/terraform/aws/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.0"
version = "4.36.1"
}
random = {
source = "hashicorp/random"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.0"
version = "4.36.1"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.0"
version = "4.36.1"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.0"
version = "4.36.1"
}
}
}
Expand Down
50 changes: 50 additions & 0 deletions cli/internal/terraform/terraform/azure/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 50 additions & 0 deletions cli/internal/terraform/terraform/gcp/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

54 changes: 54 additions & 0 deletions cli/internal/terraform/terraform/qemu/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions hack/terraform/aws/iam/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.0"
version = "4.36.1"
}
}
}
Expand Down Expand Up @@ -39,7 +39,7 @@ resource "aws_iam_role" "control_plane_role" {
}
]
}
EOF
EOF
}

resource "aws_iam_policy" "control_plane_policy" {
Expand Down Expand Up @@ -144,7 +144,7 @@ resource "aws_iam_role" "worker_node_role" {
}
]
}
EOF
EOF
}

resource "aws_iam_policy" "worker_node_policy" {
Expand Down

0 comments on commit 8d6c9e2

Please sign in to comment.