@@ -50,13 +50,17 @@ variable "num_paravirtualized_volumes_per_instance" {
5050}
5151
5252variable "instance_shape" {
53- default = " VM.Standard2.1 "
53+ default = " VM.Standard.E3.Flex "
5454}
5555
5656variable "instance_ocpus" {
5757 default = 1
5858}
5959
60+ variable "instance_shape_config_memory_in_gbs" {
61+ default = 1.1
62+ }
63+
6064variable "instance_image_ocid" {
6165 type = map (string )
6266
@@ -70,6 +74,16 @@ variable "instance_image_ocid" {
7074 }
7175}
7276
77+ variable "flex_instance_image_ocid" {
78+ type = map (string )
79+ default = {
80+ us-phoenix-1 = " ocid1.image.oc1.phx.aaaaaaaa6hooptnlbfwr5lwemqjbu3uqidntrlhnt45yihfj222zahe7p3wq"
81+ us-ashburn-1 = " ocid1.image.oc1.iad.aaaaaaaa6tp7lhyrcokdtf7vrbmxyp2pctgg4uxvt4jz4vc47qoc2ec4anha"
82+ eu-frankfurt-1 = " ocid1.image.oc1.eu-frankfurt-1.aaaaaaaadvi77prh3vjijhwe5xbd6kjg3n5ndxjcpod6om6qaiqeu3csof7a"
83+ uk-london-1 = " ocid1.image.oc1.uk-london-1.aaaaaaaaw5gvriwzjhzt2tnylrfnpanz5ndztyrv3zpwhlzxdbkqsjfkwxaq"
84+ }
85+ }
86+
7387variable "db_size" {
7488 default = " 50" # size in GBs
7589}
@@ -90,7 +104,8 @@ resource "oci_core_instance" "test_instance" {
90104 shape = var. instance_shape
91105
92106 shape_config {
93- ocpus = var. instance_ocpus
107+ ocpus = " ${ var . instance_ocpus } "
108+ memory_in_gbs = " ${ var . instance_shape_config_memory_in_gbs } "
94109 }
95110
96111 create_vnic_details {
@@ -102,7 +117,7 @@ resource "oci_core_instance" "test_instance" {
102117
103118 source_details {
104119 source_type = " image"
105- source_id = var. instance_image_ocid [var . region ]
120+ source_id = var. flex_instance_image_ocid [var . region ]
106121 # Apply this to set the size of the boot volume that's created for this instance.
107122 # Otherwise, the default boot volume size of the image is used.
108123 # This should only be specified when source_type is set to "image".
0 commit comments