terraform: Terraform module for GCP (#2553)

This commit is contained in:
Adrian Stobbe 2023-11-10 13:32:18 +01:00 committed by GitHub
parent b765231175
commit 22d82a59ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 530 additions and 73 deletions

View file

@ -12,7 +12,7 @@ module "aws_iam" {
resource "null_resource" "ensure_yq" {
provisioner "local-exec" {
command = <<EOT
${path.module}/install-yq.sh
../constellation-cluster/install-yq.sh
EOT
}
triggers = {
@ -20,8 +20,9 @@ resource "null_resource" "ensure_yq" {
}
}
module "fetch_ami" {
source = "./fetch-ami"
module "fetch_image" {
source = "../fetch-image"
csp = "aws"
attestation_variant = var.enable_snp ? "aws-sev-snp" : "aws-nitro-tpm"
region = local.region
image = var.image
@ -35,7 +36,7 @@ module "aws" {
node_groups = var.node_groups
iam_instance_profile_worker_nodes = module.aws_iam.worker_nodes_instance_profile
iam_instance_profile_control_plane = module.aws_iam.control_plane_instance_profile
ami = module.fetch_ami.ami
ami = module.fetch_image.image
region = local.region
zone = var.zone
debug = var.debug