Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aliyun/alicloud: some compile error with resource alicloud_alb_listener #3601

Open
1 task
shanye997 opened this issue Apr 22, 2024 · 1 comment
Open
1 task
Labels
bug Something isn't working new Un-triaged issue pre-built providers Issues around pre-built providers managed at https://github.com/hashicorp/cdktf-repository-manager

Comments

@shanye997
Copy link

Expected Behavior

compile successfully

Actual Behavior

image

Steps to Reproduce

  1. cdktf init --template=go --providers=aliyun/alicloud --local
  2. cdktf get

Versions

cdktf debug
language: go
cdktf-cli: 0.20.7
node: v20.10.0
cdktf: 0.20.6
constructs: 10.1.167
jsii: 1.95.0
terraform: 1.7.5
arch: arm64
os: darwin 23.1.0
go: go version go1.20.6 darwin/arm64
providers
aliyun/alicloud@~> 1.220 (LOCAL)
terraform provider version: 1.221.0

Providers

alicloud-go cdktf provider list
┌─────────────────┬──────────────────┬───────┬────────────┬──────────────┬─────────────────┐
│ Provider Name │ Provider Version │ CDKTF │ Constraint │ Package Name │ Package Version │
├─────────────────┼──────────────────┼───────┼────────────┼──────────────┼─────────────────┤
│ aliyun/alicloud │ 1.221.0 │ │ ~> 1.220 │ │ │
└─────────────────┴──────────────────┴───────┴────────────┴──────────────┴─────────────────┘

Gist

No response

Possible Solutions

No response

Workarounds

No response

Anything Else?

No response

References

No response

Help Wanted

  • I'm interested in contributing a fix myself

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment
@shanye997 shanye997 added bug Something isn't working new Un-triaged issue pre-built providers Issues around pre-built providers managed at https://github.com/hashicorp/cdktf-repository-manager labels Apr 22, 2024
@shanye997
Copy link
Author

shanye997 commented Apr 22, 2024

Besides, I have some problems with cdktf convert in Go version. I need to update the name of packages, structs and attributes before I use it to manage some resources. Please give me some guidance on how I can batch convert terraform templates and use them for testing.
The command I use is cat main.tf| cdktf convert --language go --provider hashicorp/alicloud > main.go
The HCL code is as followings.

data "alicloud_zones" "foo" {
  available_resource_creation = "VSwitch"
}

resource "alicloud_vpc" "foo" {
  vpc_name   = "terraform-example"
  cidr_block = "172.16.0.0/12"
}

resource "alicloud_vswitch" "foo" {
  vswitch_name = "terraform-example"
  cidr_block   = "172.16.0.0/21"
  vpc_id       = alicloud_vpc.foo.id
  zone_id      = data.alicloud_zones.foo.zones.0.id
}
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working new Un-triaged issue pre-built providers Issues around pre-built providers managed at https://github.com/hashicorp/cdktf-repository-manager
Projects
None yet
Development

No branches or pull requests

1 participant