diff --git a/deploy/oracle/main.tf b/deploy/oracle/main.tf index a5d63b3..5fdd5bc 100644 --- a/deploy/oracle/main.tf +++ b/deploy/oracle/main.tf @@ -52,11 +52,11 @@ resource "oci_core_image" "my_custom_image" { # These properties help OCI understand how to launch instances from this image # Adjust based on your custom image's OS and boot mode - launch_mode = "PARAVIRTUALIZED" # Or "NATIVE", "EMULATED", "CUSTOM" - operating_system = "NixOS" # e.g., "CentOS", "Debian", "Windows" - operating_system_version = "25.05" # e.g., "7", "11", "2019" + operating_system = "NixOS" # e.g., "CentOS", "Debian", "Windows" + operating_system_version = "25.05" # e.g., "7", "11", "2019" } + launch_mode = "PARAVIRTUALIZED" # Or "NATIVE", "EMULATED", "CUSTOM" # Optional: for specific launch options if your image requires them # launch_options { # boot_volume_type = "PARAVIRTUALIZED" diff --git a/deploy/oracle/network.tf b/deploy/oracle/network.tf index 2d33a25..63fdb7e 100644 --- a/deploy/oracle/network.tf +++ b/deploy/oracle/network.tf @@ -10,7 +10,7 @@ resource "oci_core_internet_gateway" "my_igw" { compartment_id = var.compartment_ocid vcn_id = oci_core_vcn.my_vpc.id display_name = "main-igw" - is_enabled = true + enabled = true } resource "oci_core_route_table" "my_public_route_table" { diff --git a/deploy/oracle/outputs.tf b/deploy/oracle/outputs.tf index 9fc0c78..014d7e9 100644 --- a/deploy/oracle/outputs.tf +++ b/deploy/oracle/outputs.tf @@ -1,11 +1,11 @@ output "host_ip" { description = "The public IP address of the launched instance." - value = oci_core_instance.ubuntu_compute_instance.public_ip + value = oci_core_instance.my_compute_instance.public_ip } output "instance_id" { description = "The OCID of the launched instance." - value = oci_core_instance.ubuntu_compute_instance.id + value = oci_core_instance.my_compute_instance.id } output "vpc_ocid" {