diff --git a/README.md b/README.md index 95621ff..fbb3722 100644 --- a/README.md +++ b/README.md @@ -111,8 +111,11 @@ For more information on access and permissions, see [app\_config\_account\_id](#output\_app\_config\_account\_id) | Account ID of the App Configuration instance | | [app\_config\_collection\_ids](#output\_app\_config\_collection\_ids) | List of IDs for the collections in the App Configuration instance | +| [app\_config\_crn](#output\_app\_config\_crn) | CRN of the App Configuration instance | | [app\_config\_guid](#output\_app\_config\_guid) | GUID of the App Configuration instance | +| [app\_config\_id](#output\_app\_config\_id) | ID of the App Configuration instance | diff --git a/examples/basic/outputs.tf b/examples/basic/outputs.tf index c6441ec..e19935b 100644 --- a/examples/basic/outputs.tf +++ b/examples/basic/outputs.tf @@ -16,3 +16,18 @@ output "app_config_guid" { description = "App Configuration GUID" value = module.app_config.app_config_guid } + +output "app_config_crn" { + description = "CRN of the App Configuration instance" + value = module.app_config.app_config_crn +} + +output "app_config_id" { + description = "ID of the App Configuration instance" + value = module.app_config.app_config_id +} + +output "app_config_account_id" { + description = "Account ID of the App Configuration instance" + value = module.app_config.app_config_account_id +} diff --git a/examples/complete/outputs.tf b/examples/complete/outputs.tf index 92ae40b..5dfb23a 100644 --- a/examples/complete/outputs.tf +++ b/examples/complete/outputs.tf @@ -14,7 +14,7 @@ output "prefix" { output "resource_group_name" { description = "The name of the resource group used" - value = var.resource_group + value = module.resource_group.resource_group_name } output "app_config_guid" { @@ -22,6 +22,21 @@ output "app_config_guid" { value = module.app_config.app_config_guid } +output "app_config_crn" { + description = "CRN of the App Configuration instance" + value = module.app_config.app_config_crn +} + +output "app_config_id" { + description = "ID of the App Configuration instance" + value = module.app_config.app_config_id +} + +output "app_config_account_id" { + description = "Account ID of the App Configuration instance" + value = module.app_config.app_config_account_id +} + output "app_config_collection_ids" { description = "App Configuration Collection IDs" value = module.app_config.app_config_collection_ids diff --git a/outputs.tf b/outputs.tf index 6046a45..41fcf25 100644 --- a/outputs.tf +++ b/outputs.tf @@ -2,11 +2,26 @@ # Outputs ######################################################################################################################## +output "app_config_crn" { + description = "CRN of the App Configuration instance" + value = ibm_resource_instance.app_config.crn +} + +output "app_config_id" { + description = "ID of the App Configuration instance" + value = ibm_resource_instance.app_config.id +} + output "app_config_guid" { description = "GUID of the App Configuration instance" value = ibm_resource_instance.app_config.guid } +output "app_config_account_id" { + description = "Account ID of the App Configuration instance" + value = ibm_resource_instance.app_config.account_id +} + output "app_config_collection_ids" { description = "List of IDs for the collections in the App Configuration instance" value = [for obj in ibm_app_config_collection.collections : obj.collection_id] diff --git a/tests/pr_test.go b/tests/pr_test.go index 959ee15..994d018 100644 --- a/tests/pr_test.go +++ b/tests/pr_test.go @@ -11,7 +11,6 @@ import ( ) // Use existing resource group -const resourceGroup = "geretain-test-app-config" const completeExampleDir = "examples/complete" func setupOptions(t *testing.T, prefix string, dir string) *testhelper.TestOptions { @@ -23,11 +22,10 @@ func setupOptions(t *testing.T, prefix string, dir string) *testhelper.TestOptio } rand.New(rand.NewSource(time.Now().Unix())) options := testhelper.TestOptionsDefaultWithVars(&testhelper.TestOptions{ - Testing: t, - TerraformDir: dir, - Prefix: prefix, - Region: validRegions[rand.Intn(len(validRegions))], - ResourceGroup: resourceGroup, + Testing: t, + TerraformDir: dir, + Prefix: prefix, + Region: validRegions[rand.Intn(len(validRegions))], }) return options }