cloudgoat
cloudgoat copied to clipboard
Step 5: assume the lambda invoker role
I've posted in the slack channel also but haven't gotten any help. Between this and destroy the scenario I'm having trouble.
Hey @ArtistYay looks like there are quotes missing around the last element (cg-... should be "cg-...").
It looks like we'll have to clarify this in the cheat sheet. Right now it attempts to show where to replace the real name but doesn't say much about quoting to make it valid JSON.
It looks like we'll have to clarify this in the cheat sheet. Right now it attempts to show where to replace the real name but doesn't say much about quoting to make it valid JSON.
Okay I've tried it but now I'm getting this error. It's saying I need to change the list into a string or am I reading it wrong?
Can you try again with double quotes instead of single?
Or let me know if you where using double quotes, may have to dig into this more if that's the case.
Can you try again with double quotes instead of single?
Or let me know if you where using double quotes, may have to dig into this more if that's the case.
Yeah I had double quotes in the command. Not sure why the out txt is showing single.
Hey I used the double quotes and this is what I got.
Hello @ArtistYay,
The error in the screenshot that you've provide can provide enlightenment and resolution to the situation. It states that the parameter 'Username' (user_name) is the wrong type (invalid type).
The type you provided was a <class 'list'>. The type expected was a <class 'str'> (aka a string).
The solution is simply to remove the square brackets:
From:
["cg-bilbo-vulnerable_lambda_cgid7gzbz4dy6s"]
To:
"cg-bilbo-vulnerable_lambda_cgid7gzbz4dy6s"
I recommend watching @TeneBrae93's video walk-through of the scenario.
Here's a screenshot from the video: