oracle / terraform-provider-oci

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

provider still using legacy plugin SDK? #1827

Open luckeyca opened 1 year ago

luckeyca commented 1 year ago

Terraform Version and Provider Version

Terraform v1.3.5 on linux_amd64

Affected Resource(s)

oci_database_autonomous_database

Terraform Configuration Files

# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. 
# Please remove any sensitive information from configuration files before sharing them. 

N/A

Debug Output

2023-04-03T10:01:57.666-0400 [WARN] Provider "registry.terraform.io/oracle/oci" produced an invalid plan for module.primary_adb.oci_database_autonomous_database.primary[0], but we are tolerating it because it is using the legacy plugin SDK. The following problems may be the cause of any confusing errors from downstream operations:

2023-04-03T10:01:57.685-0400 [WARN] Provider "registry.terraform.io/oracle/oci" produced an invalid plan for module.clone_adb.oci_database_autonomous_database.primary[0], but we are tolerating it because it is using the legacy plugin SDK. The following problems may be the cause of any confusing errors from downstream operations:

2023-04-03T10:01:57.685-0400 [WARN] Provider "registry.terraform.io/oracle/oci" produced an invalid plan for module.clone_adb.oci_database_autonomous_database.primary[0], but we are tolerating it because it is using the legacy plugin SDK. The following problems may be the cause of any confusing errors from downstream operations:

Expected Behavior

should use the latest supported SDK.

Actual Behavior

Still using the legacy SDK.

Steps to Reproduce

  1. export TF_LOG=DEBUG
  2. run terrafrom plan using any code.
  3. search for the word "legacy" in the debug outputs.

Important Factoids

References

Maxrovr commented 1 year ago

Hi @luckeyca , The new plugin framework was recently release and we have discussed moving to it, but it is not on the road map for the immediate future (1 month). We will keep this issue open and have a tracking ticket to upgrade the SDK soon

ravinitp commented 1 year ago

Thank you for reporting the issue. We observed the affected resources are not provided in the description or it's incorrect. We request you to add it in issue description as mentioned in below format. Example: affected_resources = oci_core_instance , oci_core_instances

If it's not related to any particular resource then mention affected resource as terraform. Example: affected_resources = terraform

As this works through automation, request you to follow exact syntax.

luckeyca commented 1 year ago

updated in the description. resource is oci_database_autonomous_database