Skip to content

[Bug] Error creating hybrid node cluster - remoteNetworkConfig.iam.provider is case sensitive  #8167

@jicowan

Description

@jicowan

What were you trying to accomplish?

I was trying to create a hybrid node cluster using the following cluster.yaml file:

apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig

metadata:
  name: hybrid
  region: us-west-2
  version: "1.31"

remoteNetworkConfig:
  iam:
    provider: SSM
  vpcGatewayID: tgw-xxxxxxxxxxxxxxxxx
  remoteNodeNetworks:
  - cidrs: ["192.168.1.0/24"]

What happened?

The following error occurred:

2025-01-28 20:03:05 [ℹ]  building cluster stack "eksctl-hybrid-cluster"
2025-01-28 20:03:05 [!]  1 error(s) occurred and cluster hasn't been created properly, you may wish to check CloudFormation console
2025-01-28 20:03:05 [ℹ]  to cleanup resources, run 'eksctl delete cluster --region=us-west-2 --name=hybrid'
2025-01-28 20:03:05 [✖]  creating CloudFormation stack "eksctl-hybrid-cluster": operation error CloudFormation: CreateStack, https response error StatusCode: 400, RequestID: b828783b-a149-4c8d-971e-209e260fd7e5, api error ValidationError: Template error: every Fn::GetAtt object requires two non-empty parameters, the resource name and the resource attribute
Error: failed to create cluster "hybrid"

How to reproduce it?

Run eksctl create cluster -f cluster.yaml

Logs

2025-01-28 20:11:32 [▶]  CreateStackInput = &cloudformation.CreateStackInput{StackName:(*string)(0xc000aa16d0), Capabilities:[]types.Capability{"CAPABILITY_IAM"}, ClientRequestToken:(*string)(nil), DisableRollback:(*bool)(0xc000b39a58), EnableTerminationProtection:(*bool)(nil), NotificationARNs:[]string(nil), OnFailure:"", Parameters:[]types.Parameter(nil), ResourceTypes:[]string(nil), RetainExceptOnCreate:(*bool)(nil), RoleARN:(*string)(nil), RollbackConfiguration:(*types.RollbackConfiguration)(nil), StackPolicyBody:(*string)(nil), StackPolicyURL:(*string)(nil), Tags:[]types.Tag{types.Tag{Key:(*string)(0xc000693780), Value:(*string)(0xc000693790), noSmithyDocumentSerde:document.NoSerde{}}, types.Tag{Key:(*string)(0xc000693aa0), Value:(*string)(0xc000693ac0), noSmithyDocumentSerde:document.NoSerde{}}, types.Tag{Key:(*string)(0xc000693ad0), Value:(*string)(0xc000693ae0), noSmithyDocumentSerde:document.NoSerde{}}, types.Tag{Key:(*string)(0xc000b51190), Value:(*string)(0xc000b511a0), noSmithyDocumentSerde:document.NoSerde{}}}, TemplateBody:(*string)(0xc000b511b0), TemplateURL:(*string)(nil), TimeoutInMinutes:(*int32)(nil), noSmithyDocumentSerde:document.NoSerde{}}
2025-01-28 20:11:33 [▶]  failed task: create cluster control plane "hybrid" (will not run other sequential tasks)
2025-01-28 20:11:33 [!]  1 error(s) occurred and cluster hasn't been created properly, you may wish to check CloudFormation console
2025-01-28 20:11:33 [ℹ]  to cleanup resources, run 'eksctl delete cluster --region=us-west-2 --name=hybrid'
2025-01-28 20:11:33 [✖]  creating CloudFormation stack "eksctl-hybrid-cluster": operation error CloudFormation: CreateStack, https response error StatusCode: 400, RequestID: 027de62f-b561-4dff-9c0f-098fc5810302, api error ValidationError: Template error: every Fn::GetAtt object requires two non-empty parameters, the resource name and the resource attribute

Anything else we need to know?

Running on a Mac with my default AWS profile

Versions

0.202.0-dev+5c8b046f6.2025-01-23T05:04:21Z

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions