forked from oracle-quickstart/appstack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwallet.tf
More file actions
24 lines (21 loc) · 683 Bytes
/
wallet.tf
File metadata and controls
24 lines (21 loc) · 683 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Copyright (c) 2023, Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
# get database wallet
# Password generator
resource "random_password" "wallet_password" {
length = 15
min_upper = 1
min_lower = 1
min_numeric = 1
min_special = 0
special = false
}
resource "oci_database_autonomous_database_wallet" "database_wallet" {
depends_on = [
random_password.wallet_password
]
autonomous_database_id = local.database_ocid
password = random_password.wallet_password.result
base64_encode_content = "true"
generate_type = "SINGLE"
}