https://pulumi.com logo
#aws
Title
# aws
g

gentle-judge-65990

09/08/2021, 9:51 AM
Hello. I'm trying to import existing EKS cluster to pulumi and getting error below. The cluster was created by terraform. It looks pretty odd that provider tries to set output-only values without my intervention. Any ideas how to bypass the error?
Copy code
➜ pulumi import --debug aws:eks/cluster:Cluster xxx xxx
Please choose a stack: xxx
Previewing import (xxx)

View Live: <https://app.pulumi.com/xxx/xxx/previews/xxxxxxx>

     Type                 Name              Plan       Info
     pulumi:pulumi:Stack  xxx               1 error; 9 debugs
 =   └─ aws:eks:Cluster   xxxx  import     3 errors

Diagnostics:
  pulumi:pulumi:Stack (xxx):
    debug: AWS Auth provider used: "SharedCredentialsProvider"
    debug: AWS Auth provider used: "SharedCredentialsProvider"
    debug: AWS Auth provider used: "SharedCredentialsProvider"
    debug: Trying to get account information via iam:GetUser
    debug: AWS Auth provider used: "SharedCredentialsProvider"
    debug: Trying to get account information via iam:GetUser
    debug: Truncating attribute path of 0 diagnostics for TypeSet
    debug: Truncating attribute path of 0 diagnostics for TypeSet
    debug: Truncating attribute path of 0 diagnostics for TypeSet
    error: preview failed

  aws:eks:Cluster (xxx):
    error: aws:eks/cluster:Cluster resource 'xxx' has a problem: Computed attributes cannot be set: Computed attributes cannot be set, but a value was set for "vpc_config.0.vpc_id".. Examine values at 'Cluster.VpcConfig.VpcId'.
    error: aws:eks/cluster:Cluster resource 'xxx' has a problem: Computed attributes cannot be set: Computed attributes cannot be set, but a value was set for "vpc_config.0.cluster_security_group_id".. Examine values at 'Cluster.VpcConfig.ClusterSecurityGroupId'.
    error: Preview failed: one or more inputs failed to validate
b

billowy-army-68599

09/08/2021, 4:31 PM
hi there! these are usually import bugs, could you open an issue for it in the aws provider?
g

gentle-judge-65990

09/08/2021, 5:09 PM
Yup. Thanks for reply