0

This is "AWS + Robomaker" question, not robotics. https://meta.stackexchange.com/a/141944/166296 suggests superuser.com for AWS + personal usage like mine, but I still think robotics site is more appropriate as the tutorial that my question is based on is taken from robomaker. I'm happy to move the question if there's better places.

What am I missing to get the tutorial working?

Issue

In a tutorial Build and Simulate Robotics Applications in AWS Cloud9 amazon.com, published 2022/08/19), I get stuck at the step 16.

Building the Amazon EC2 Instance"

  1. Once you have configured the automation, select Execute at the bottom right of the screen to begin the automation.

Error reads (creds are swapped):

Value (arn:aws:ec2:us-east-1:292993933939:instance/i-0a0f99abeea700e54) for parameter iamInstanceProfile.arn is invalid. Invalid IAM Instance Profile ARN (Service: AmazonEC2; Status Code: 400; Error Code: InvalidParameterValue; Request ID: 9e4cdad7-9a7a-40a3-9864-3301a998319e; Proxy: null)

Things I tried but didn't seem to help

Assuming the error message is saying that the ARN is incorrect, I've tried various ARN, none of which even returned a different error message.

  • arn:aws:ec2:us-east-1:292993933939:instance/i-0a0f99abeea700e54
  • arn:aws:ec2:us-east-1:292993933939:instance/robomaker_test1 (EC2 instance' name)
  • arn:aws:ec2:us-east-1:292993933939:instance/* (referring https://stackoverflow.com/a/59371263/577001)
  • arn:aws:ec2:us-east-1:292993933939:instance/0a0f99abeea700e54

Maybe related finding in the tutorial

Prerequisites

  1. To find your custom public SSH key, navigate to the AWS Cloud9 console (https://us-east-1.console.aws.amazon.com/cloud9/home?region=us-east-1#).

I think this is the point where the instructed step and what I see on the same link starts looking different.

  • I do NOT see step "18. Select Create and run in remote server (SSH connection) underneath Environment type." and step 19 on my AWS gui.
  • And I see some other required fields that I have no idea what I should put in (see screenshot below). Completely out of idea, I tried to refer to the public host name of an EC2 instance I'm running but no good. enter image description here
Glorfindel
  • 297
  • 1
  • 4
  • 10
IsaacS
  • 4,502
  • 1
  • 13
  • 13

1 Answers1

0

Resolved myself.

Hunch was in the screenshot in the tutorial where ARN contains "instance-profile" header. So tried to find on my end the one that has the same header. enter image description here (Image from cloudfront.net)

Indeed, the "ec2-instance-builder" Role made in an earlier section does seem to have that header. With that ARN the blocked section on Systems Manager passed.

Also, unsure if this is related or not though, in the OP I said I saw different menus on Cloud9. I chose the following.

Prerequisites

  1. Add a name, the example in the blog uses “test”, and select Next to proceed.
  2. Select Create and run in remote server (SSH connection) underneath Environment type.

I don't see that option off the top, but just did:

  • New EC2 instance
    • t2.micro
    • Ubuntu 18.04 server
    • Network setting: SSH
IsaacS
  • 4,502
  • 1
  • 13
  • 13