diff --git a/modules/terraform-cdp-deploy/modules/aws/outputs.tf b/modules/terraform-cdp-deploy/modules/aws/outputs.tf index 32c0754..92e960a 100644 --- a/modules/terraform-cdp-deploy/modules/aws/outputs.tf +++ b/modules/terraform-cdp-deploy/modules/aws/outputs.tf @@ -10,4 +10,16 @@ # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and -# limitations under the License. \ No newline at end of file +# limitations under the License. + +output "cdp_environment_name" { + value = cdp_environments_aws_environment.cdp_env.environment_name + + description = "CDP Environment Name" +} + +output "cdp_environment_crn" { + value = cdp_environments_aws_environment.cdp_env.crn + + description = "CDP Environment CRN" +} diff --git a/modules/terraform-cdp-deploy/modules/azure/outputs.tf b/modules/terraform-cdp-deploy/modules/azure/outputs.tf index e3cf504..0671c70 100644 --- a/modules/terraform-cdp-deploy/modules/azure/outputs.tf +++ b/modules/terraform-cdp-deploy/modules/azure/outputs.tf @@ -11,3 +11,15 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + +output "cdp_environment_name" { + value = cdp_environments_azure_environment.cdp_env.environment_name + + description = "CDP Environment Name" +} + +output "cdp_environment_crn" { + value = cdp_environments_azure_environment.cdp_env.crn + + description = "CDP Environment CRN" +} diff --git a/modules/terraform-cdp-deploy/outputs.tf b/modules/terraform-cdp-deploy/outputs.tf index e3cf504..962fe4d 100644 --- a/modules/terraform-cdp-deploy/outputs.tf +++ b/modules/terraform-cdp-deploy/outputs.tf @@ -11,3 +11,21 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + +output "cdp_environment_name" { + value = coalesce( + module.cdp_on_aws[0].cdp_environment_name, + module.cdp_on_azure[0].cdp_environment_name + ) + + description = "CDP Environment Name" +} + +output "cdp_environment_crn" { + value = coalesce( + module.cdp_on_aws[0].cdp_environment_crn, + module.cdp_on_azure[0].cdp_environment_crn + ) + + description = "CDP Environment CRN" +}