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

'defaultNodeGroupInstanceRole' has a problem: Value for unconfigurable attribute. Can't configure a value for "type" #1479

Open
bencmbrook opened this issue Nov 11, 2024 · 3 comments
Labels
awaiting-feedback Blocked on input from the author kind/bug Some behavior is incorrect or out of spec

Comments

@bencmbrook
Copy link

What happened?

Diagnostics:
  aws:eks:AccessEntry (example-cluster-defaultNodeGroupInstanceRole):
    error: aws:eks/accessEntry:AccessEntry resource 'example-cluster-defaultNodeGroupInstanceRole' has a problem: Value for unconfigurable attribute. Can't configure a value for "type": its value will be decided automatically based on the result of applying this configuration.. Examine values at 'example-cluster-defaultNodeGroupInstanceRole.type'.

Example

import * as eks from '@pulumi/eks';

const cluster = new eks.Cluster(
  'example-cluster',
  {
    authenticationMode: eks.AuthenticationMode.Api, // same error with `ApiAndConfigMap`
  },
  { provider },
);

Output of pulumi about

CLI          
Version      3.38.0
Go Version   go1.19
Go Compiler  gc

Plugins
NAME    VERSION
nodejs  unknown

Host     
OS       debian
Version  11.7
Arch     x86_64

This project is written in nodejs: executable='/usr/local/share/nvm/versions/node/v18.20.3/bin/node' version='v18.20.3'

Backend        
Name           fv-az1485-849
URL            s3://dev-pulumi-state
User           root
Organizations  

pulumi about didn't grab the plugins but here:

resource aws v6.18.2
resource eks v3.0.1
resource kubernetes v4.15.0

Additional context

It seems like this is coming from here:

defaultNodeGroupInstanceRole: {
principalArn: defaultInstanceRole.arn,
type: AccessEntryType.EC2_LINUX,
},

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

@bencmbrook bencmbrook added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Nov 11, 2024
@flostadler
Copy link
Contributor

Hey, I'm very sorry you're running into this!

I just tried reproducing this error on my end with the example you provided, but it's deploying fine.

These are the versions I'm using:

CLI
Version      3.136.1
Go Version   go1.23.2
Go Compiler  gc

Plugins
KIND      NAME        VERSION
resource  aws         6.58.0
resource  awsx        2.17.0
resource  docker      4.5.7
resource  docker      3.6.1
resource  eks         3.0.1
resource  kubernetes  4.18.3
language  nodejs      3.136.1-dev.0

Dependencies:
NAME            VERSION
@pulumi/awsx    2.17.0
@pulumi/eks     3.0.1
@pulumi/pulumi  3.138.0
@types/node     18.19.64
typescript      5.6.3

I see that you're using an older version of pulumi. Could you try updating both the pulumi CLI as well as your @pulumi/pulumi node dependency?

@flostadler flostadler added awaiting-feedback Blocked on input from the author and removed needs-triage Needs attention from the triage team labels Nov 11, 2024
@bencmbrook
Copy link
Author

Thank you @flostadler - that's helpful to know this is not universal. It seems like this class of errors tends to come from version mismatches, so you're probably correct.

I'll see if we can upgrade, but it may take a few days since there's a large remote state, so I want to make sure we can safely upgrade across the board.

@pulumi-bot pulumi-bot added needs-triage Needs attention from the triage team and removed awaiting-feedback Blocked on input from the author labels Nov 11, 2024
@flostadler
Copy link
Contributor

Sounds good, let me know how it goes!

@flostadler flostadler added awaiting-feedback Blocked on input from the author and removed needs-triage Needs attention from the triage team labels Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-feedback Blocked on input from the author kind/bug Some behavior is incorrect or out of spec
Projects
None yet
Development

No branches or pull requests

3 participants