Hi all, I am trying to create an EKS cluster, but ...
# typescript
p
Hi all, I am trying to create an EKS cluster, but I got the following error:
Copy code
Diagnostics:
  pulumi:pulumi:Stack (platform-data-kafka-stage-stage):
    error: Running program '/Users/sdicola/IdeaProjects/property-xyz/platform-data-kafka-stage' failed with an unhandled exception:
    Error: providerCredentialOpts and AWS_PROFILE must be set together
adding this
Copy code
```providerCredentialOpts:{
    profileName: "<http://stage.property.xyz|stage.property.xyz>",
    roleArn: "arn:aws:iam::aws:policy/AdministratorAccess"
}
pass that error
but got this
Copy code
error: Running program '/Users/sdicola/IdeaProjects/property-xyz/platform-data-kafka-stage' failed with an unhandled exception:
    Error: Unable to deserialize resource urn:pulumi:stage::platform-data-kafka-stage::eks:index:Cluster$eks:index:ServiceRole$aws:iam/role:Role::cluster-eksRole-role, no module is registered for iam/role.
        at deserializeProperty (/Users/sdicola/IdeaProjects/property-xyz/platform-data-kafka-stage/node_modules/@pulumi/pulumi/runtime/rpc.js:486:31)
        at Object.deserializeProperties (/Users/sdicola/IdeaProjects/property-xyz/platform-data-kafka-stage/node_modules/@pulumi/pulumi/runtime/rpc.js:125:24)
        at /Users/sdicola/IdeaProjects/property-xyz/platform-data-kafka-stage/node_modules/@pulumi/pulumi/runtime/resource.js:436:43
        at Generator.next (<anonymous>)
        at /Users/sdicola/IdeaProjects/property-xyz/platform-data-kafka-stage/node_modules/@pulumi/pulumi/runtime/resource.js:21:71
        at new Promise (<anonymous>)
        at __awaiter (/Users/sdicola/IdeaProjects/property-xyz/platform-data-kafka-stage/node_modules/@pulumi/pulumi/runtime/resource.js:17:12)
        at resolveOutputs (/Users/sdicola/IdeaProjects/property-xyz/platform-data-kafka-stage/node_modules/@pulumi/pulumi/runtime/resource.js:431:12)
        at Object.<anonymous> (/Users/sdicola/IdeaProjects/property-xyz/platform-data-kafka-stage/node_modules/@pulumi/pulumi/runtime/resource.js:233:19)
        at Generator.throw (<anonymous>)
am I missing something?
f
This looks similar to what’s being reported in https://github.com/pulumi/examples/issues/826 /cc @broad-dog-22463
If not perhaps exactly the same thing
p
shooot
completely missed that
@faint-table-42725
let me give it a go
f
Yeah, no, this is our fault and looks like a bug introduced in the latest version of the runtime. If you go back one version, I believe it should work.
p
Copy code
❯ brew install pulumi@2.12
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
Error: No available formula or cask with the name "pulumi@2.12".
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
mm?
can only see 2.12.1
Copy code
❯ brew install pulumi@2.12.1
Updating Homebrew...
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
Error: No available formula or cask with the name "pulumi@2.12.1".
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
@faint-table-42725 got this now
❯ /Users/sdicola/.pulumi/bin/pulumi version v2.12.1
another error :)
f
Hrm… I’m not able to reproduce that w/ my clone of
aws-ts-eks
Is your code modified in any way beside providing the providerCredentialOpts?
p
Copy code
View Live: <https://app.pulumi.com/dicolasi/eks-pulumi/dev/updates/1>

     Type                                   Name                              Status       
 +   pulumi:pulumi:Stack                    eks-pulumi-dev                    creating..   
 +   ├─ eks:index:Cluster                   helloworld                        creating     
 +   │  ├─ eks:index:ServiceRole            helloworld-instanceRole             created      
 +   │  │  ├─ aws:iam:Role                  helloworld-instanceRole-role        created      
 +   │  │  ├─ aws:iam:RolePolicyAttachment  helloworld-instanceRole-e1b295bd    created      
 +   │  │  ├─ aws:iam:RolePolicyAttachment  helloworld-instanceRole-03516f97    created      
 +   ├─ eks:index:Cluster                   helloworld                          creating...  
 +   │  ├─ eks:index:ServiceRole            helloworld-eksRole                  created      
 +   │  │  ├─ aws:iam:Role                   helloworld-eksRole-role             created      
 +   ├─ eks:index:Cluster                    helloworld                          creating     
 +   │  │  └─ aws:iam:RolePolicyAttachment   helloworld-eksRole-4b490823              created      
 +   │  ├─ pulumi-nodejs:dynamic:Resource    helloworld-cfnStackName                  created      
 +   ├─ eks:index:Cluster                    helloworld                               creating...  
 +   │  ├─ aws:ec2:SecurityGroup             helloworld-eksClusterSecurityGroup       created      
 +   │  ├─ aws:ec2:SecurityGroupRule         helloworld-eksClusterInternetEgressRule  created      
 +   │  └─ aws:eks:Cluster                   helloworld-eksCluster                    creating..   
 +   └─ awsx:x:ec2:Vpc                       vpc                                      created      
 +      ├─ awsx:x:ec2:Subnet                 vpc-public-1                             created      
 +      │  ├─ aws:ec2:Subnet                 vpc-public-1                             created      
 +      │  ├─ aws:ec2:RouteTable             vpc-public-1                             created      
 +      │  ├─ aws:ec2:Route                  vpc-public-1-ig                          created      
 +      │  └─ aws:ec2:RouteTableAssociation  vpc-public-1                             created      
 +      ├─ awsx:x:ec2:InternetGateway        vpc                                      created      
 +      │  └─ aws:ec2:InternetGateway        vpc                                      created      
 +      ├─ aws:ec2:Vpc                       vpc                                      created      
 +      └─ awsx:x:ec2:Subnet                 vpc-public-0                             created      
 +         ├─ aws:ec2:RouteTable             vpc-public-0                             created      
 +         ├─ aws:ec2:Subnet                 vpc-public-0                             created      
 +         ├─ aws:ec2:Route                  vpc-public-0-ig                          created      
 +         └─ aws:ec2:RouteTableAssociation  vpc-public-0                             created
created a new project
seems to work now
👍 1