diff --git a/docs/data-sources/secure_connect_bundle_url.md b/docs/data-sources/secure_connect_bundle_url.md index 66c7d48..a3a61aa 100644 --- a/docs/data-sources/secure_connect_bundle_url.md +++ b/docs/data-sources/secure_connect_bundle_url.md @@ -17,6 +17,10 @@ description: |- data "astra_secure_connect_bundle_url" "scb" { database_id = "f9f4b1e0-4c05-451e-9bba-d631295a7f73" } +// Output for SCB reference +output "scb" { + value = data.astra_secure_connect_bundle_url.scb.secure_bundles[0].url +} // For mult-DC databases, specify the datacenter ID // Example 1: Hard-coded IDs @@ -35,6 +39,16 @@ data "astra_secure_connect_bundle_url" "scb3" { database_id = "f9f4b1e0-4c05-451e-9bba-d631295a7f73" datacenter_id = "f9f4b1e0-4c05-451e-9bba-d631295a7f73-3" } +// Output for SCB reference +output "scb1" { + value = data.astra_secure_connect_bundle_url.scb1.secure_bundles[0].url +} +output "scb2" { + value = data.astra_secure_connect_bundle_url.scb2.secure_bundles[0].url +} +output "scb3" { + value = data.astra_secure_connect_bundle_url.scb3.secure_bundles[0].url +} // Example 2: Referenced IDs // Database example for referencing @@ -64,6 +78,16 @@ data "astra_secure_connect_bundle_url" "scb3" { database_id = astra_database.mydb.id datacenter_id = astra_database.mydb.datacenters["${astra_database.mydb.cloud_provider}.${astra_database.mydb.regions[2]}"] } +// Output for SCB reference +output "scb1" { + value = data.astra_secure_connect_bundle_url.scb1.secure_bundles[0].url +} +output "scb2" { + value = data.astra_secure_connect_bundle_url.scb2.secure_bundles[0].url +} +output "scb3" { + value = data.astra_secure_connect_bundle_url.scb3.secure_bundles[0].url +} ``` diff --git a/examples/data-sources/astra_secure_connect_bundle_url/data-source.tf b/examples/data-sources/astra_secure_connect_bundle_url/data-source.tf index 4bba806..ed24e1c 100644 --- a/examples/data-sources/astra_secure_connect_bundle_url/data-source.tf +++ b/examples/data-sources/astra_secure_connect_bundle_url/data-source.tf @@ -2,6 +2,10 @@ data "astra_secure_connect_bundle_url" "scb" { database_id = "f9f4b1e0-4c05-451e-9bba-d631295a7f73" } +// Output for SCB reference +output "scb" { + value = data.astra_secure_connect_bundle_url.scb.secure_bundles[0].url +} // For mult-DC databases, specify the datacenter ID // Example 1: Hard-coded IDs @@ -20,6 +24,16 @@ data "astra_secure_connect_bundle_url" "scb3" { database_id = "f9f4b1e0-4c05-451e-9bba-d631295a7f73" datacenter_id = "f9f4b1e0-4c05-451e-9bba-d631295a7f73-3" } +// Output for SCB reference +output "scb1" { + value = data.astra_secure_connect_bundle_url.scb1.secure_bundles[0].url +} +output "scb2" { + value = data.astra_secure_connect_bundle_url.scb2.secure_bundles[0].url +} +output "scb3" { + value = data.astra_secure_connect_bundle_url.scb3.secure_bundles[0].url +} // Example 2: Referenced IDs // Database example for referencing @@ -49,3 +63,13 @@ data "astra_secure_connect_bundle_url" "scb3" { database_id = astra_database.mydb.id datacenter_id = astra_database.mydb.datacenters["${astra_database.mydb.cloud_provider}.${astra_database.mydb.regions[2]}"] } +// Output for SCB reference +output "scb1" { + value = data.astra_secure_connect_bundle_url.scb1.secure_bundles[0].url +} +output "scb2" { + value = data.astra_secure_connect_bundle_url.scb2.secure_bundles[0].url +} +output "scb3" { + value = data.astra_secure_connect_bundle_url.scb3.secure_bundles[0].url +}