Showcreds not working

-bash: showcreds: command not found

What am i missing?

A link to the lab in question would help a lot here; usually, this works.

showcreds hasn’t worked in any of the labs, but here’s one:

https://learn.kodekloud.com/user/courses/learn-by-doing-aws-workshop-with-terraform/module/9fb15240-b61f-4729-9e7a-0f276d9d507d/lesson/2c1abfbd-525a-41e8-aeb9-9df52a1d4576

btw, once I got to the next lab “managing terraform state” with a visual studio code terminal (instead of just a bash terminal) - it worked. in other words, inside visual studio code there is a terminal window, typing showcreds works in there. In the first 2 terraform labs, we did not use visual studio code and I just had a bash shell, showcreds do not work there.

Looks like you’re correct – in the lab you linked, I get

root@aws-client ~ on ☁️  (us-east-1) ✖ showcreds
-bash: showcreds: command not found

The work-around is to just use the creds in that first frame of the lab. But I’ll tell the lab team that it is not correctly set up in this configuration.

@bbishopski

Although the showcreds command should work and Rob has raised an internal ticket, what it actually does is this

cat /opt/showcreds

so you can run that too.

Thanks for reporting this. Our engineers have fixed this.

Thanks for addressing this, future engineers will find it useful - there’s no back button to go back to the initial screen that I could find, so if you didn’t write down those creds you had to start over.