I need to use the “FortiGate Next-Gen Firewall (BYOL)” image in the oracle marketplace to create an instance, and my code cannot find this image.
terraform {
required_providers {
oci = {
source = "hashicorp/oci"
}
}
}
provider "oci" {
tenancy_ocid = "ocid1."
user_ocid = "ocid1."
fingerprint = ""
private_key_path = "cbc.pem"
region = "ap-singapore-1"
}
data "oci_core_images" "example_images" {
compartment_id = var.compartment_ocid
display_name = "FortiGate Next-Gen Firewall (BYOL)"
}
output "image_id" {
value = data.oci_core_images.example_images.images
}
The execution results are as follows:
root@terrform:/var/local/oracle# terraform apply
data.oci_core_images.example_images: Reading...
data.oci_core_images.example_images: Read complete after 0s [id=CoreImagesDataSource-1606446143]
No changes. Your infrastructure matches the configuration.
Terraform has compared your real infrastructure against your configuration and found no differences, so no changes are needed.
Apply complete! Resources: 0 added, 0 changed, 0 destroyed.
Outputs:
image_id = tolist([])