Open
Description
Describe the bug
When provisioning only Azure resources, sandbox output prints gcp messages not related to the intended target
To Reproduce
Run make tsb
and check the final output which should look like:
Apply complete! Resources: 6 added, 0 changed, 0 destroyed.
terraform workspace select default
Switched to workspace "default".
popd > /dev/null
Finished deploying tsb control plane on cloud 'azure'
Onboarding TSB Control and Data Plane on cloud gcp...
JSON structure of 'terraform.tfvars.json' is valid.
Going to deploy tsb control plane on cloud 'gcp'
Going to deploy tsb control plane on cloud 'gcp'
JSON structure of 'terraform.tfvars.json' is valid.
Going to refresh k8s token for cloud 'gcp'
Going to refresh k8s token on cloud 'gcp'
Finished deploying tsb control plane on cloud 'gcp'
Magic is on the way...
Expected behavior
Only print out messages related to the intended resource targets.
terraform.tfvars.json
{
"k8s_clusters": {
"aws": [],
"azure": [
{
"region": "centralus",
"tetrate": {
"control_plane": true,
"management_plane": true
},
"addons": {
"argocd": {
"enabled": true
}
}
},
{
"region": "westus",
"tetrate": {
"control_plane": true
},
"addons": {
"argocd": {
"enabled": true
}
}
},
{
"region": "eastus",
"tetrate": {
"control_plane": true
},
"addons": {
"argocd": {
"enabled": true
}
}
}
],
"gcp": []
},
"tags": {
"tetrate_owner": "michael",
"tetrate_team": "sales:ce"
},
"name_prefix": "docusign",
"tetrate": {
"fqdn": "docusign.azure.sandbox.tetrate.io",
"image_sync_apikey": "1b6830be641140dafd44a282020802bede0a5e50",
"image_sync_username": "nauticalmike",
"organization": "docusign",
"password": "Tetrate123",
"version": "1.8.0-internal-rc3"
}
}
Versions
- Terraform (
terraform version Terraform v1.3.6 on darwin_arm64
) - Environment (
ProductName: macOS ProductVersion: 11.7.5 BuildVersion: 20G1225
,uname -a Darwin 13mikeBookPro 20.6.0 Darwin Kernel Version 20.6.0: Thu Mar 9 20:39:37 PST 2023; root:xnu-7195.141.49.700.6~1/RELEASE_ARM64_T8101 arm64
)
Additional context
Add any other context about the problem here.