AWS Connect & CloudShell

0

Hello Forums

I have been attempting to run any command from CloudShell and cannot seem to get the Instance ID to read. Is there a syntax missing?

[cloudshell-user@]$ aws connect list-routing-profiles / --0*******-5***-4***-b***-6***********

usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters] To see help text, you can run:

aws help aws <command> help aws <command> <subcommand> help

aws: error: the following arguments are required: --instance-id

2 Answers
1
Accepted Answer

Your syntax isn't quite right - you need to have literally --instance-id followed by the value:

aws connect list-routing-profiles --instance-id 0****-5**-4**-b**-6**
profile pictureAWS
EXPERT
James_S
answered 5 months ago
  • I tried every combination except that. HA! I appreciate the example! Up and running!

1

It feels like you're close, but let's take a step back. First, make sure you can login via the CLI. If you can't do this then nothing else will matter. To validate you logged in run the following command:

aws connect list-instances

Confirm you see the instance you want to get get routing profiles from. Then run:

aws connect list-routing-profiles --instance-id your-instance-id-from-above-here

Additionally you want to wrap the line above you can do this.

aws connect list-routing-profiles \ --instance-id your-instance-id-from-above-here

david

profile picture
dmacias
answered 5 months ago
  • Hello David,

    Thank you for your reply. I was able to confirm the instance is connected. But the commands do not complete when inputting my instance id as shown below.

    [cloudshell-user@ip]$ aws connect list-instances { "InstanceSummaryList": [ { "Id": "0*******-5***-4***-b***-6***********", "Arn": "arn:aws:connect:us-west-2:3***********:instance/0*******-5***-4***-b***-6***********", "IdentityManagementType": "SAML", "InstanceAlias": "itdcontact", "CreatedTime": "2024-02-02T16:46:49+00:00", "ServiceRole": "arn:aws:iam::3***********:role/aws-service-role/connect.amazonaws.com/AWSServiceRoleForAmazonConnect_FEKW7Fpf6aKaBuOOmY7C", "InstanceStatus": "ACTIVE", "InboundCallsEnabled": true, "OutboundCallsEnabled": true, "InstanceAccessUrl": "https://.my.connect.aws" } ] } [cloudshell-user@ip]$ aws connect list-routing-profiles --0******-5***-4***-b***-6***********

    usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters] To see help text, you can run:

    aws help aws <command> help aws <command> <subcommand> help

    aws: error: the following arguments are required: --instance-id

  • Yep, you are missing --instance-id and you will be set.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions