Open ahmedfourti opened 2 years ago
Yes, have same issue
I got the same issue I got the log from EKS operator when it tried to remove it and decode error message.
"DecodedMessage": "{"allowed":false,"explicitDeny":false,"matchedStatements":{"items":[]},"failures":{"items":[]},"context":{"principal":{"id":"xxxxxx","name":"rancher-user","arn":"arn:aws:iam::00000:user/rancher-user"},"action":"ec2:DeleteLaunchTemplate","resource":"arn:aws:ec2:us-east-2:0000:launch-template/lt-0b76d1d8fb124d18c","conditions":{"items":[{"key":"aws:Region","values":{"items":[{"value":"us-east-2"}]}},{"key":"aws:ID","values":{"items":[{"value":"lt-0b76d1d8fb124d18c"}]}},{"key":"aws:Service","values":{"items":[{"value":"ec2"}]}},{"key":"aws:Resource","values":{"items":[{"value":"launch-template/lt-0b76d1d8fb124d18c"}]}},{"key":"ec2:ResourceTag/rancher-managed-template","values":{"items":[{"value":"do-not-modify-or-delete"}]}},{"key":"aws:Type","values":{"items":[{"value":"launch-template"}]}},{"key":"aws:Account","values":{"items":[{"value":"0000"}]}},{"key":"aws:ARN","values":{"items":[{"value":"arn:aws:ec2:us-east-2:0000:launch-template/lt-0b76d1d8fb124d18c"}]}}]}}}
maybe need to fix some order to exclude properly or a put timer before try to exclude it
Hello,
When deploying EKS on rancher using terraform, rancher creates a launch template for each node group with a static name which composed as follow :
rancher-managed-lt-{{node_group_name}}
When deleting the cluster and its node group, the launch template is not deleted, which means after recreating another node-group with same name we get this error :Waiting for API to be available:InvalidLaunchTemplateName.AlreadyExistsException: Launch template name already in use. status code: 400, request id: 5b075b19-24ae-45b5-a096-7be0e87ccb13
Steps to reproduce :test
rancher-managed-lt-test
I think 2 things to change here :
Thanks for your help,