From ce5a72e3eca18c9c9795bfb43d7f8f0c9a8d6ebc Mon Sep 17 00:00:00 2001 From: Niall Thomson Date: Fri, 5 Apr 2024 13:27:31 -0600 Subject: [PATCH] update: Fix ACK lab provisioning (#886) --- .../automation/controlplanes/ack/.workshop/cleanup.sh | 2 +- .../controlplanes/ack/.workshop/terraform/main.tf | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/manifests/modules/automation/controlplanes/ack/.workshop/cleanup.sh b/manifests/modules/automation/controlplanes/ack/.workshop/cleanup.sh index 7ee4629b4..3fa4b6bce 100755 --- a/manifests/modules/automation/controlplanes/ack/.workshop/cleanup.sh +++ b/manifests/modules/automation/controlplanes/ack/.workshop/cleanup.sh @@ -3,4 +3,4 @@ logmessage "Deleting resources created by ACK..." eksctl delete iamserviceaccount --name carts-ack --namespace carts --cluster $EKS_CLUSTER_NAME -v 0 -kubectl delete table items -n carts --ignore-not-found=true \ No newline at end of file +delete-all-if-crd-exists tables.dynamodb.services.k8s.aws \ No newline at end of file diff --git a/manifests/modules/automation/controlplanes/ack/.workshop/terraform/main.tf b/manifests/modules/automation/controlplanes/ack/.workshop/terraform/main.tf index 51126334b..7639d8304 100644 --- a/manifests/modules/automation/controlplanes/ack/.workshop/terraform/main.tf +++ b/manifests/modules/automation/controlplanes/ack/.workshop/terraform/main.tf @@ -1,3 +1,12 @@ +terraform { + required_providers { + kubectl = { + source = "gavinbunney/kubectl" + version = ">= 1.14" + } + } +} + provider "aws" { region = "us-east-1" alias = "virginia"