Open ngochieu642 opened 4 months ago
I'm not great at Go, but it seems that while the instance_source_image_filter_details
get validated and serialized and sent to the server, the server does not care about them.
InstanceSourceViaImageDetails
(in InstanceSourceDetails
)
(in LaunchInstanceDetails::sourceDetails
)
doesn't mention them at all for instance.
And I don't see the provider in this repository doing anything to search the image itself.
So, it seems you'd have to do an
oci compute image list --all \
--shape "VM.Standard.A1.Flex" \
--operating-system "Canonical Ubuntu" \
--operating-system-version "22.04" \
| jq -r '.data|sort_by(."time-created")|.[-1].id'
of your own and provide that as source_id
(I have my compartment_id
set in my ~/.oci/oci_cli_rc
)
Terraform Version and Provider Version
Affected Resource(s)
"oci_core_instance"
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
Actual Behavior
imageId
is nullSteps to Reproduce
terraform apply
Important Factoids
References