cloudgoat icon indicating copy to clipboard operation
cloudgoat copied to clipboard

Step 5: assume the lambda invoker role

Open ArtistYay opened this issue 2 years ago • 6 comments

image

I've posted in the slack channel also but haven't gotten any help. Between this and destroy the scenario I'm having trouble.

ArtistYay avatar May 18 '22 17:05 ArtistYay

Hey @ArtistYay looks like there are quotes missing around the last element (cg-... should be "cg-...").

RyanJarv avatar May 20 '22 18:05 RyanJarv

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.

RyanJarv avatar May 20 '22 18:05 RyanJarv

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. image

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?

ArtistYay avatar May 20 '22 19:05 ArtistYay

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.

RyanJarv avatar May 20 '22 22:05 RyanJarv

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.

ArtistYay avatar May 20 '22 22:05 ArtistYay

Hey I used the double quotes and this is what I got. image

ArtistYay avatar Jun 13 '22 16:06 ArtistYay

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: image

jdearmas avatar Apr 15 '23 02:04 jdearmas