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

hundreds-receptionist-31352

11/24/2020, 3:39 PM
Hi, I'm trying to import a Eks cluster created previously without pulumi, using the command line and I'm getting this error:
Copy code
pulumi import aws:eks/cluster:Cluster mserv-test-eks mserv-testing-eks -d -v 999
Previewing import (testing):
     Type                 Name                 Plan       Info
     pulumi:pulumi:Stack  qallariy-testing                1 error; 11 debugs
 =   └─ aws:eks:Cluster   mserv-test-eks  import     3 errors
Diagnostics:
  pulumi:pulumi:Stack (qallariy-testing):
    debug: Attempting to use session-derived credentials
    debug: Successfully derived credentials from session
    debug: AWS Auth provider used: "AssumeRoleProvider"
    debug: Trying to get account information via sts:GetCallerIdentity
    debug: Trying to get account information via sts:GetCallerIdentity
    debug: Reading EKS Cluster: {
    debug:   Name: "mserv-testing-eks"
    debug: }
    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 (mserv-test-eks):
    error: aws:eks/cluster:Cluster resource 'mserv-test-eks' has a problem: Computed attribute cannot be set
    error: aws:eks/cluster:Cluster resource 'mserv-test-eks' has a problem: Computed attribute cannot be set
    error: Preview failed: one or more inputs failed to validate
Please copy the following code into your Pulumi application. Not doing so
will cause Pulumi to report that an update will happen on the next update command.
Please note, that the imported resources are marked as protected. To destroy them
you will need to remove the `protect` option and run `pulumi update` *before*
the destroy will take effect.
does anyone have a clue? thanks in advance!
2 Views