-
Notifications
You must be signed in to change notification settings - Fork 48
/
nosql.tf
27 lines (23 loc) · 953 Bytes
/
nosql.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
## This configuration was generated by terraform-provider-oci
resource oci_nosql_table nosql_demoKeyVal {
compartment_id = var.compartment_ocid
ddl_statement = "CREATE TABLE IF NOT EXISTS demoKeyVal ( key INTEGER GENERATED ALWAYS AS IDENTITY (START WITH 1 INCREMENT BY 1 NO CYCLE ), value JSON, PRIMARY KEY (key))"
is_auto_reclaimable = var.always_free
name = "demoKeyVal"
table_limits {
max_read_units = "10"
max_storage_in_gbs = "1"
max_write_units = "10"
}
}
resource oci_nosql_table nosql_demo {
compartment_id = var.compartment_ocid
ddl_statement = "CREATE TABLE if not exists demo(fullName STRING, contactPhone STRING, ticketNo STRING, confNo STRING,gender STRING, bagInfo JSON, PRIMARY KEY ( ticketNo ))"
is_auto_reclaimable = var.always_free
name = "demo"
table_limits {
max_read_units = "10"
max_storage_in_gbs = "1"
max_write_units = "10"
}
}