Skip to content

Commit b7e040f

Browse files
committed
don't hardcode compute resources
Signed-off-by: Richard Gebhardt <[email protected]>
1 parent 4af1ff1 commit b7e040f

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

infrastructure/main.tf

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -98,19 +98,10 @@ resource "oci_core_instance" "luna_instance" {
9898
user_data = base64encode(file(var.cloud_init_script))
9999
}
100100

101-
102-
shape_config {
103-
ocpus = 30
104-
memory_in_gbs = 480
105-
}
106-
}
107-
108-
resource "null_resource" "wait_for_cloudinit" {
109-
depends_on = [oci_core_instance.luna_instance]
110101
provisioner "remote-exec" {
111102
connection {
112103
type = "ssh"
113-
host = oci_core_instance.luna_instance.public_ip
104+
host = self.public_ip
114105
user = "opc"
115106
private_key = file(var.ssh_key_path)
116107
}
@@ -120,4 +111,4 @@ resource "null_resource" "wait_for_cloudinit" {
120111
"sudo reboot",
121112
]
122113
}
123-
}
114+
}

0 commit comments

Comments
 (0)