Skip to content

Error when trying to apply terraform #41

Answered by chadgeary
DavidBC71 asked this question in Q&A
Discussion options

You must be logged in to vote

Terraform's error states the source_id is missing from the server (oci_core_instance). The source ID is defined in a terraform data lookup:

data "oci_core_image" "ph-image" {
  image_id                = var.oci_imageid
}

this data lookup requires variables oci_imageid which should be set in your oci.tfvars file:

https://github.com/chadgeary/cloudblock/blob/master/oci/oci.tfvars#L73

I talk about this variable at 6:57 in the oracle video: https://youtu.be/bVoO6XRNhJs?t=657

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@DavidBC71
Comment options

Answer selected by DavidBC71
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants