oracle / terraform-provider-oci

Terraform Oracle Cloud Infrastructure provider
https://www.terraform.io/docs/providers/oci/
Mozilla Public License 2.0
758 stars 676 forks source link

API Gateway fails if certificate_id is not provided though it is an optional parameter #2216

Open jeliker1 opened 3 days ago

jeliker1 commented 3 days ago

Community Note

Terraform Version and Provider Version

Terraform v1.7.4 on darwin_arm64

Affected Resource(s)

affected_resources = oci_apigateway_gateway

Terraform Configuration Files

resource "oci_apigateway_gateway" "api1" {
  #Required
  compartment_id = var.compartment_id
  endpoint_type  = "PRIVATE"
  subnet_id      = var.subnet_id

  display_name = "API1"
}

Debug Output

Error: 400-MissingParameter, Missing certificateId
│ Suggestion: Please retry or contact support for help with service: Apigateway Gateway
│ Documentation: https://registry.terraform.io/providers/oracle/oci/latest/docs/resources/apigateway_gateway 
│ API Reference:  
│ Request Target: POST https://apigateway.us-langley-1.oci.oraclegovcloud.com/20190501/gateways 
│ Provider version: 6.13.0, released on 2024-10-12.  
│ Service: Apigateway Gateway 
│ Operation Name: CreateGateway 
│ OPC request ID: ea0332b0063a90f210845ce0332b04c7/2D178B464DCF74F2106B11878C9215F1/C1A8FFB44DC843E250E63117548CF23F 

Panic Output

Expected Behavior

API Gateway should successfully create without certificate_id value (which is optional)

Actual Behavior

API Gateway DOES NOT successfully create without certificate_id value (which is optional)

Steps to Reproduce

  1. terraform apply

Important Factoids

References