We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4af1ff1 commit b7e040fCopy full SHA for b7e040f
infrastructure/main.tf
@@ -98,19 +98,10 @@ resource "oci_core_instance" "luna_instance" {
98
user_data = base64encode(file(var.cloud_init_script))
99
}
100
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]
110
provisioner "remote-exec" {
111
connection {
112
type = "ssh"
113
- host = oci_core_instance.luna_instance.public_ip
+ host = self.public_ip
114
user = "opc"
115
private_key = file(var.ssh_key_path)
116
@@ -120,4 +111,4 @@ resource "null_resource" "wait_for_cloudinit" {
120
"sudo reboot",
121
]
122
123
+}
0 commit comments