Skip to content

Commit 2cae797

Browse files
fix: use new input structure (#277)
1 parent 6bb3f82 commit 2cae797

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/migrate-tenant.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ parse_args() {
3030
CONFIG_FILE="${TF_DIR}/config.yml"
3131

3232
rendered=$(terragrunt render --format json --working-dir "$TF_DIR")
33-
arc_cluster_name=$(echo "$rendered" | jq -r '.inputs.arc_cluster_name')
33+
arc_cluster_name=$(echo "$rendered" | jq -r '.inputs.arc_deployment_specs.cluster_name')
3434
aws_profile=$(echo "$rendered" | jq -r '.inputs.aws_profile')
3535
aws_region=$(echo "$rendered" | jq -r '.inputs.aws_region')
3636

@@ -40,7 +40,7 @@ parse_args() {
4040
--alias "${arc_cluster_name}-${aws_profile}-${aws_region}" \
4141
--profile "$aws_profile"
4242

43-
FROM_CTX="$arc_cluster_name"
43+
FROM_CTX="${arc_cluster_name}-${aws_profile}-${aws_region}"
4444
}
4545

4646
detect_clusters() {

0 commit comments

Comments
 (0)