Trouble Using OCI CLI to Deploy Terraform Configuration for OCI Functions
I'm upgrading from an older version and I'm maintaining legacy code that I've looked through the documentation and I'm still confused about I'm facing issues when trying to deploy my Terraform configuration for Oracle Cloud Infrastructure (OCI) Functions using the OCI CLI..... I have set up my environment and have been able to successfully authenticate and list my functions. However, when I run the deployment command, I get the following error: ``` Error: Error creating function: InvalidParameter: The "image" parameter must be specified. "image" requires a value. ``` My Terraform configuration file looks like this: ```hcl provider "oci" { tenancy_ocid = var.tenancy_ocid user_ocid = var.user_ocid fingerprint = var.fingerprint private_key_path = var.private_key_path region = var.region } resource "oci_function_function" "my_function" { application_id = oci_function_application.my_app.id display_name = "MyFunction" image = "myrepo/myimage:latest" memory_in_mb = 256 timeout_in_seconds = 30 source = "./function_source" } ``` I have verified that the image exists in the Oracle Container Registry and is correctly tagged as "myrepo/myimage:latest". My OCI CLI version is 3.3.0, and I'm using Terraform version 1.0.0. I tried adding the `image` parameter directly in the OCI Console to ensure that it's not an issue with the image itself, and it worked correctly, which makes me believe the problem lies in my Terraform setup. Additionally, I've checked the IAM policies for my user and confirmed that I have the necessary permissions to access the image in the container registry. Has anyone encountered a similar issue deploying OCI Functions with Terraform? Any suggestions on what might be going wrong or what further checks I can perform? I'm open to any suggestions. This is my first time working with Hcl latest. Has anyone else encountered this?