Skip to content

Commit 6c96757

Browse files
committed
Updated to 22.2
Updated variables to use latest 22.2 spatial studio marketplace image
1 parent 2ee9335 commit 6c96757

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

terraform/compute.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ resource "oci_core_instance" "simple-vm" {
3737
ssh_authorized_keys = var.ssh_public_key
3838
user_data = base64encode(file("./scripts/bootstrap.sh"))
3939

40+
https_only = true
4041
server_ssl_port = var.console_ssl_port
4142
use_secrets = var.use_secrets
4243
admin_user = var.admin_user
@@ -58,7 +59,8 @@ resource "oci_core_instance" "simple-vm" {
5859
#required when using existing adb, optional for new one and will be defaulted to sgtech
5960
adb_user = var.adb_user
6061
#required when using existing adb, optional for new one and will be defaulted to admin's
61-
adb_user_password_ocid = var.adb_user_password_ocid
62+
adb_user_pwd = var.adb_user_password_ocid
63+
adb_use_secrets = true
6264
#required to set max/min connections for studio
6365
is_free_adb = local.is_free_adb
6466

terraform/locals.tf

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,12 @@ locals {
2323
listing_resource_id = local.compute_image_id
2424
listing_resource_version = var.mp_listing_resource_version
2525

26-
compute_flexible_shapes = [
27-
"VM.Standard.E3.Flex",
28-
"VM.Standard.E4.Flex",
29-
"VM.Standard3.Flex",
30-
"VM.Optimized3.Flex"
31-
]
32-
3326
compute_arm_shapes = [
3427
"VM.Standard.A1.Flex"
3528
]
3629

3730
# local.is_flex_shape referenced in compute.tf
38-
is_flex_shape = contains(local.compute_flexible_shapes,var.instance_shape.instanceShape) ? [1] : []
31+
is_flex_shape = contains(split(".",var.instance_shape.instanceShape), "Flex") ? [1] : []
3932

4033
is_arm_shape = contains(local.compute_arm_shapes,var.instance_shape.instanceShape) ? true : false
4134

terraform/variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,11 @@ variable "mp_listing_id" {
190190

191191
# Package version Reference
192192
variable "mp_listing_resource_version" {
193-
default = "22.1.1.1"
193+
default = "22.2.0.1"
194194
}
195195

196196
# Use this variable along the use_marketplace_image to specify either the
197197
# Image artifact ocid to use the latest official marketplace image or your custom image ocid
198198
variable "instance_image_id" {
199-
default = "ocid1.image.oc1..aaaaaaaalb6tbux65qelwpgvb7h5uklfzujeufaerq2qoh2tewlghnp5ie7a"
199+
default = "ocid1.image.oc1..aaaaaaaalrslmrm5tx6eitzqs46usxmpyddj3yzmxrp63pb5ij4ibx4vyw5q"
200200
}

0 commit comments

Comments
 (0)