Gcloud update Anthos cluster command fails

Running following command:

gcloud container aws clusters update aws-cluster-jn --admin-users=user@mail.com

is failing with:

Updating cluster [aws-cluster-jn]...⠛ERROR: could not get console output: UnauthorizedOperation You are not authorized to perform this operation. Encoded authorization failure message: 66js6qBKKEU8t40QYtclFXF_HOWmPKEDkVpkPJyH8s8CAHtq1Ri6ZV3-CSGokDLQ9zah9xpIEnSTQutk82RHujocuA-HLAft_CFdDgyoTMy9dqSJf0vi58rQMymlRZQEzhGLJljzjW3GoY-gjJhLwUceCUH1Bm-UtKFXEDrPX4Mc9hqXBqDgVvlkYzG94hPVDuNxmPyEQ876ZWOxVSC8prkBSXNM8ttedVkAvnhVuGdisGMfsUMGe_m66wmboRi9NHTOwxmXlYbc53IHVqnPorT-VSxOJDP5MTM0eqEbOA0d8Jv8IpjMSlzOQXi8nRRbr1uuTRRiiQeHD-wCzGqJGivtxLd-7FOAxgu11qHnrekW3mV7IQoRmIE_bKYYvj4Nrahtfs5RNz1HUrNZMaRwNht0WphIQiUOY3uEc3u7IjK7khiVd_1j4bkFaj_m-lawYqsGL70ZgCG-dznkHuubQgyhAWydqqoMZSOi1OGGpzCW9ksEa5q-Yw-5yaUrxXoz8SVIT7VM7o2niXePo5muXypWhC_-8vEnbD8Tg8czEtcdROsYGTzIxDWmmXLjyRqN_RGV7baORx2oNXLafQpUx7nxKzeBsR6BZvwHTHIHmt4bf7a4GP_I7lAiTjsoDe15fMnAIzakygwiublzIe1c0-LC0-PXU7k_wbfRY-bHO4hQaIBPLy8OP5X00A4Qlwxey370OhfE4P5z8EscI2IZqPlfoo_6sNOlpJSs2Tk5qrzOL0Rp2Gj0qdiQgJlxWmNVYzplPQ8AsPgSjRVd_Mc0FoG3NPPgNBRHwznKln5EtrLxb0GPwe-tyGPFZbz48IUa2r-f3DWvobBWO9YUTkkfhc3G8eNOUZ29i2j7_Rv0IOM0XEDZNiEH7xqMYp5tYIzsQZnieyCFuY0vl6G00K9KM1iWD_8WEuPVPgAZUsEg4RQIq-v1-oC6l-en6Xv3kj9zu0swGYBIPJBVXgDoeItxP4SOteynlECAiDDSemep_AgtjS0co2689ONlyhhni7euzn1_HQ
Updating cluster [aws-cluster-jn]...⠼ERROR: Internal error encountered.
Updating cluster [aws-cluster-jn]... Cluster is being health-checked...failed.

although I’m an Owner of a certain Google project. The very same command was working on another cluster that was not part of the current Google project. Any idea why this is failing?

Based on the error logs, the issue is mostly on AWS’ side. Take a look into the following troubleshooting thread [1].

[1] https://aws.amazon.com/premiumsupport/knowledge-center/ec2-not-auth-launch/

1 Like

Thanks for this, it seems I was missing ec2:GetConsoleOutput within IAM Policy. Explained here: https://github.com/GoogleCloudPlatform/anthos-samples/pull/289