Data Source: azurermStorageEncryptionScope
Use this data source to access information about an existing Storage Encryption Scope.
Example Usage
import * as cdktf from "cdktf";
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
const dataAzurermStorageAccountExample =
new azurerm.dataAzurermStorageAccount.DataAzurermStorageAccount(
this,
"example",
{
name: "storageaccountname",
resource_group_name: "resourcegroupname",
}
);
const dataAzurermStorageEncryptionScopeExample =
new azurerm.dataAzurermStorageEncryptionScope.DataAzurermStorageEncryptionScope(
this,
"example_1",
{
name: "existingStorageES",
storage_account_id: dataAzurermStorageAccountExample.id,
}
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
dataAzurermStorageEncryptionScopeExample.overrideLogicalId("example");
new cdktf.TerraformOutput(this, "id", {
value: dataAzurermStorageEncryptionScopeExample.id,
});
Arguments Reference
The following arguments are supported:
-
name
- (Required) The name of this Storage Encryption Scope. -
storageAccountId
- (Required) The ID of the Storage Account where this Storage Encryption Scope exists.
Attributes Reference
In addition to the Arguments listed above - the following Attributes are exported:
-
id
- The ID of the Storage Encryption Scope. -
keyVaultKeyId
- The ID of the Key Vault Key. -
source
- The source of the Storage Encryption Scope.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Storage Encryption Scope.