YamlError while loading kubeconfig: while scanning a simple key

  • What are you seeing, and how does that differ from what you expect to see?

I have observed the following error occurring while the GitLab pipeline is running, despite verifying that both the GitLab CI pipeline syntax and YAML syntax appear to be correct. What could be the possible reasons for the issue, and what solutions could be implemented to mitigate it?

$ aws eks --region us-east-1 update-kubeconfig --name $DEV_APP_NAME

[21]YamlError while loading kubeconfig: while scanning a simple key

[22] in “/home/gitlab-runner/.kube/config”, line 28, column 1

[23]could not find expected ‘:’

  • Consider including screenshots, error messages, and/or other helpful visuals

  • What version are you on? Are you using self-managed or GitLab.com?

    • GitLab (Hint: /help): SaaS GitLab
    • Runner (Hint: /admin/runners):
  • Add the CI configuration from .gitlab-ci.yml and other configuration if relevant (e.g. docker-compose.yml)

  • What troubleshooting steps have you already taken? Can you link to any docs or other resources so we know where you have been?

I have verified the YAML syntax and pipeline job configurations, and no changes have been made.

Thanks for taking the time to be thorough in your request, it really helps! :blush: