azure_region_list = [ ("eastus2.azure.prod.prom.integration.tidbcloud.com", "40.67.156.132"), ("southeastasia.azure.prod.prom.integration.tidbcloud.com", "172.188.194.237"), ("japaneast.azure.prod.prom.integration.tidbcloud.com", "48.218.120.98"), # Newly added Azure region — replace IP placeholder with actual external IP ("westeurope.azure.prod.prom.integration.tidbcloud.com", "52.178.118.157") ] for dns, record_name in azure_region_list: dns_zone = "prod.prom.integration.tidbcloud.com" plan_file = f"plan-{dns}.tfplan" state_file = f"state-{dns}.tfstate" plan_cmd = ( f'terraform plan -input=false \\\n' f' -var "domain_name={dns}" \\\n' f' -var "domain_zone_name={dns_zone}" \\\n' f' -var "record_name={record_name}" \\\n' f' -out={plan_file} \\\n' f' -state={state_file}' ) apply_cmd = f"terraform apply -input=false -state={state_file} {plan_file} " print(f"# target {dns}") print(plan_cmd) print() print(apply_cmd) print("\n" + ("-" * 60) + "\n")