Share Cloud9 env with SSO users

1

I've created a Cloud9 environment and I would like to share it with AWS users in my organization. However, we are using IAM Identity Center for SSO, and Cloud9 appears to only work with regular IAM users. Is there any way to share environments with users/groups which are synced using SSO?

2 Answers
2

There is a way to share Cloud9 env with AWS Users (SSO), but you need a User ARN

Follow these steps to grand access:

  1. To get an Identity for AWS User you want to share Cloud9 Env, please ask her or him to execute the below command in AWS CloudShell/Terminal or Cloud9:
aws sts get-caller-identity
  1. Ask them to Copy an ARN from the JSON response and send it to you.
  2. Open a Cloud9 Env that you want to share with the user.
  3. in Cloud9 top right corner, click share
  4. in the "Invite members" section, paste the copied ARN from the previous step.
  5. choose access type Read & Write (RW) or only read (R)
  6. click the Invite button
  7. send a URL link to your Cloud9 for the user you are granted access.
  8. Happy coding {>;}
profile picture
answered a year ago
  • Indeed using the full arn works! I honestly thought I had tried that. Note that if multiple users have the same sso configuration, likely only the very last part of the arn will differ. Thank you very much @skroczak. (I still think better IAM integration would be much preferred for many reasons.)

  • How can we share to all the users which are using the same permission set in the federated users? DOes it allows the wild cards? Ex: if the federated user permission set is arn:aws:sts::<account-id>:assumed-role/AWSReservedSSO_ps-07224-c-002_c240e72bbc80fb73/*/ps-07224-c-002?

-1
profile pictureAWS
EXPERT
answered 2 years ago
  • The referenced document seems to explain how a federated (SSO) user can access Cloud9. But I believe the question is how that user, having started a Cloud9 instance, can share the Cloud9 environment by inviting another SSO user in the account. In order to do that, the “owner” of the Cloud9 environment must click “share” in the Cloud9 environment and then enter an “IAM username” to “invite” another user. As the OP stated, that only seems to work for regular IAM users, not IAM Identity Center users. (As an aside, it is extremely strange that Cloud9 environments are user-specific, given that it is designed for real-time collaboration. Would not IAM be sufficient for access control, as with almost every other AWS service?)

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