» Data Source: oci_database_autonomous_database_wallet

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
    generate_type = "${var.autonomous_database_wallet_generate_type}"
}

» Argument Reference

The following arguments are supported:

  • autonomous_database_id - (Required) The database OCID.
  • generate_type - (Optional) The type of wallet to generate. SINGLE is used to generate a wallet for a single database. ALL is used to generate wallet for all databases in the region.
  • 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.
  • base64_encode_content - (Optional) Encodes the downloaded zipped wallet in base64. It is recommended to set this to true to avoid corrupting the zip file in Terraform state. The default value is false to preserve backwards compatibility with Terraform v0.11 configurations.

» Attributes Reference

The following attributes are exported:

  • content - content of the downloaded zipped wallet for the Autonomous Database. If base64_encode_content is set to true, 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.