pulumi / pulumi-aws

An Amazon Web Services (AWS) Pulumi resource package, providing multi-language access to AWS
Apache License 2.0
464 stars 155 forks source link

EKS Cluster vpcConfig.vpcId should not be an input #4558

Open danielrbradley opened 1 month ago

danielrbradley commented 1 month ago

Trying to set a value for vpcConfig.vpcId results in the error:

error: aws:eks/cluster:Cluster resource 'eksCluster-cluster' has a problem:
Value for unconfigurable attribute.
Can't configure a value for "vpc_config.0.vpc_id":
its value will be decided automatically based on the result of applying this configuration..
Examine values at 'eksCluster-cluster.vpcConfig.vpcId'.

This field is listed as Computed in the upstream provider:

https://github.com/hashicorp/terraform-provider-aws/blob/9e65615e21dce9e508e677392e3d183f2579296f/internal/service/eks/cluster.go#L337-L339

t0yv0 commented 1 month ago

Another instance of https://github.com/pulumi/pulumi-terraform-bridge/issues/2178 ! Thanks so much for reporting, we missed the impact that it's broken at runtime anyway.