Closed Michael-Adriaanse-al closed 1 week ago
Voting for Prioritization
Volunteering to Work on This Issue
Cloudtrail CreateLaunchTemplate
"responseElements": {
"CreateLaunchTemplateResponse": {
"xmlns": "http://ec2.amazonaws.com/doc/2016-11-15/",
"requestId": "f9a0e589-de61-46d0-8762-6dc3e346e786",
"warning": {
"errorSet": {
"item": {
"code": "InvalidIamInstanceProfile.NotFound",
"message": "The IamInstanceProfile.Name 'eks-c8c32a37-3f82-7f3d-7eed-6e1f7adc29ba' does not exist."
}
}
},
"launchTemplate": {
"tagSet": {
"item": [
{
"value": "aim-dev-nodes",
"key": "eks:nodegroup-name"
},
{
"value": "aim-dev",
"key": "eks:cluster-name"
}
]
},
"createTime": "2023-02-15T09:36:20.000Z",
"createdBy": "arn:aws:sts::********:assumed-role/AWSServiceRoleForAmazonEKSNodegroup/EKS",
"launchTemplateId": "lt-06dbfa73b38c4cdbc",
"latestVersionNumber": 1,
"defaultVersionNumber": 1,
"launchTemplateName": "eks-c8c32a37-3f82-7f3d-7eed-6e1f7adc29ba"
}
}
},
Hi @Michael-Adriaanse-al. Would you mind also giving us your Terraform config for the following resources as well please:
aws_eks_cluster.aim_eks
aws_iam_role_policy_attachment.aim_node_policy1
aws_iam_role_policy_attachment.aim_node_policy2
aws_iam_role_policy_attachment.aim_node_policy3
aws_iam_role.aim_node_role
I'll try to reproduce here. It would be useful as well if you could post the output you get from running Terraform where it shows you what order it creates the resources in, at this stage we don't need full debug output so just whatever is displayed on your terminal is fine. Thanks!
@Michael-Adriaanse-al is this still an issue or can we close this out now?
Since we haven't heard back, I'm going to close this issue. If you're still having trouble, please feel free to open a new issue, referencing this one for context as needed.
[!WARNING] This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them.
Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed.
Terraform Core Version
1.3.4
AWS Provider Version
4.49.0
Affected Resource(s)
aws_eks_node_group
Expected Behavior
EKS node group should create with no issues. I have tried using a launch template as well but doesn't allow me to insert a instance profile due to the node group creating the instance profile itself.
Actual Behavior
Terraform times out after 24 mins of running and gives a CREATE_FAILED error. Cloudtrail shows that the RunInstances APi fails with an IAMInstanceProfile name not found.
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Run terraform apply with this file, eks cluster and roles.
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None