after upgrading to `pulumi-eks` v3, and trying to ...
# aws
a
after upgrading to
pulumi-eks
v3, and trying to use
AuthenticationModeApiAndConfigMap
I have been getting some weird errors I'm struggling to understand.
Copy code
waiting for RPCs: marshaling properties: awaiting input property "assumeRolePolicy": expected a eks.AccessEntry, got a resource of type *eks.AccessEntry
And sometimes i get this
Copy code
waiting for RPCs: expected a eks.AccessEntry, got a resource of type *eks.AccessEntry
I supply a
map[string]eks.AccessEntryArgs
to
eks.ClusterArgs
.
now I have removed all arguments except accessEntries and authenticationMode, but i still get the same error
Copy code
authMode := eks.AuthenticationModeApiAndConfigMap
role, err := iam.NewRole(ctx, "example-cluster-2-role", &iam.RoleArgs{
    AssumeRolePolicy: pulumi.String(`{
        "Version": "2012-10-17",
        "Statement": [{
            "Action": "sts:AssumeRole",
            "Effect": "Allow",
            "Principal": {
                "Service": "<http://ec2.amazonaws.com|ec2.amazonaws.com>"
            }
        }]
    }`),
})
if err != nil {
    return nil, err
}
accessEntries := map[string]eks.AccessEntryArgs{
    "example-cluster-role": {
        PrincipalArn: role.Arn,
        AccessPolicies: map[string]eks.AccessPolicyAssociationInput{
            "view": eks.AccessPolicyAssociationArgs{
                PolicyArn: pulumi.String("arn:aws:eks::aws:cluster-access-policy/AmazonEKSViewPolicy"),
                AccessScope: awseks.AccessPolicyAssociationAccessScopeArgs{
                    Type: pulumi.String("cluster"),
                },
            },
        },
    },
}
clusterArgs := &eks.ClusterArgs{
    AuthenticationMode: &authMode,
    AccessEntries:      accessEntries,
}
return eks.NewCluster(ctx, eksClusterName, clusterArgs, opts...)
q
Hey, sorry you're running into this! I commented on the issue and closed it in favor of https://github.com/pulumi/pulumi-eks/issues/1435 that's tracking the same bug. Currently working on fixing it 🤞
@adamant-father-26302, I merged in a fix for this earlier today. A new release is currently being built and should be published shortly
a
sweet! how long does the build usually take?
q
I think it just finished 15 minutes ago 🙂 It's usually around ~2 hours with all the testing steps