Data Source: oci_database_autonomous_database_wallet
Deprecated. Use oci_database_autonomous_database_wallet instead.
This data source provides details about a specific Autonomous Database Wallet resource in Oracle Cloud Infrastructure Database service.
Creates and downloads a wallet for the specified Autonomous Database.
Example Usage
data "oci_database_autonomous_database_wallet" "test_autonomous_database_wallet" {
#Required
autonomous_database_id = oci_database_autonomous_database.test_autonomous_database.id
password = var.autonomous_database_wallet_password
#Optional
base64_encode_content = "false"
generate_type = var.autonomous_database_wallet_generate_type
is_regional = var.autonomous_database_wallet_is_regional
}
Argument Reference
The following arguments are supported:
autonomous_database_id- (Required) The database OCID.base64_encode_content- (Optional) Encodes the downloaded zipped wallet in base64. It is recommended to set this totrueto avoid corrupting the zip file in Terraform state. The default value isfalseto preserve backwards compatibility with Terraform v0.11 configurations.generate_type- (Optional) The type of wallet to generate.Serverless instance usage:
SINGLE- used to generate a wallet for a single databaseALL- used to generate wallet for all databases in the region
Dedicated Exadata infrastructure usage: Value must be
NULLif attribute is used.is_regional- (Optional) True when requesting regional connection strings in PDB connect info, applicable to cross-region DG only.password- (Required) The password to encrypt the keys inside the wallet. The password must be at least 8 characters long and must include at least 1 letter and either 1 numeric character or 1 special character.
Attributes Reference
The following attributes are exported:
content- content of the downloaded zipped wallet for the Autonomous Database. Ifbase64_encode_contentis set totrue, then this content will be base64 encoded.
If passing the base64 encoded content to a local_file resource, please use the content_base64 attribute of the local_file resource.
See this example for more details.