terraform-provider-proxmox icon indicating copy to clipboard operation
terraform-provider-proxmox copied to clipboard

CDKTF doesn't extract provider values

Open it-happens-nl opened this issue 3 years ago • 1 comments

Describe the bug When using CDKTF (v.0.12.1) and configuring the provider, I cannot add a "virtual_environment {}" block. An error "Argument of type virtualEnvironment is not assignable to parameter of type 'ProxmoxProviderConfig'". CDKTF only recognizes the "alias" parameter. Without the parameter, deployment seems to fail on this:

│ Error: you must specify the virtual environment details in the provider configuration
│ 
│   with proxmox_virtual_environment_pool.resource-pool,
│   on cdk.tf.json line 37, in resource.proxmox_virtual_environment_pool.resource-pool:
│   37:       }

To Reproduce Steps to reproduce the behavior: In a cdktf project, create a proxmox resource and declare the provider:

    // Setup provider
    new ProxmoxProvider(this, 'proxmox', {});

run cdktf deploy

Expected behavior The provider should be generated correctly

Additional context None at this point

it-happens-nl avatar Aug 20 '22 14:08 it-happens-nl

I'm re-tagging this issue as "enhancement", as CDKTF was not initially supported by the original provider.

bpg avatar Sep 30 '22 00:09 bpg

Marking this issue as stale due to inactivity in the past 180 days. This helps us focus on the active issues. If this issue is reproducible with the latest version of the provider, please comment. If this issue receives no comments in the next 30 days it will automatically be closed. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!

github-actions[bot] avatar Mar 30 '23 00:03 github-actions[bot]