Manage Permissions for AWS CodeStar Team Members - AWS CodeStar

On July 31, 2024, Amazon Web Services (AWS) will discontinue support for creating and viewing AWS CodeStar projects. After July 31, 2024, you will no longer be able to access the AWS CodeStar console or create new projects. However, the AWS resources created by AWS CodeStar, including your source repositories, pipelines, and builds, will be unaffected by this change and will continue to function. AWS CodeStar Connections and AWS CodeStar Notifications will not be impacted by this discontinuation.

 

If you wish to track work, develop code, and build, test, and deploy your applications, Amazon CodeCatalyst provides a streamlined getting started process and additional functionality to manage your software projects. Learn more about functionality and pricing of Amazon CodeCatalyst.

Manage Permissions for AWS CodeStar Team Members

You change permissions for team members by changing their AWS CodeStar role. Each team member can be assigned to only one role in an AWS CodeStar project, but many users can be assigned to the same role. You can use the AWS CodeStar console or AWS CLI to manage permissions.

Important

To change a role for a team member, you must either have the AWS CodeStar owner role for that project or have the AWSCodeStarFullAccess policy applied.

Changing a team member's permissions does not affect that team member's access to any resources that are outside of AWS (for example, a GitHub repository or issues in Atlassian JIRA). Those access permissions are controlled by the resource provider, not AWS CodeStar. For more information, see the resource provider's documentation.

Anyone who has access to an AWS CodeStar project may be able to use the AWS CodeStar console to access resources that are outside of AWS but are related to that project.

Changing a team member's role for a project does not automatically allow or prevent that member from participating in any AWS Cloud9 development environments for the project. To allow or prevent a team member from participating in a shared environment, see Share an AWS Cloud9 Environment with a Project Team Member.

You can also grant permissions for users to remotely access any Amazon EC2 Linux instances associated with the project. After you grant this permission, the user must upload an SSH public key that is associated with their AWS CodeStar user profile across all team projects. To successfully connect to the Linux instances, the user must have SSH configured and the private key on the local computer.

Manage Team Permissions (Console)

You can use the AWS CodeStar console to manage the roles of team members. You can also manage whether team members have remote access to the Amazon EC2 instances associated with your project.

To change the role of a team member
  1. Open the AWS CodeStar console at https://console.aws.amazon.com/codestar/.

  2. Choose Projects from the navigation pane and choose your project.

  3. In the side navigation pane for the project, choose Team.

  4. On the Team members page, choose the team member and choose Edit.

  5. In Project role, choose the AWS CodeStar role (owner, contributor, or viewer) you want to grant this user.

    For more information about AWS CodeStar roles and their permissions, see Working with AWS CodeStar Teams.

    Choose Edit team member.

To grant a team member remote access permissions to Amazon EC2 instances
  1. Open the AWS CodeStar console at https://console.aws.amazon.com/codestar/.

  2. Choose Projects from the navigation pane and choose your project.

  3. In the side navigation pane for the project, choose Team.

  4. On the Team members page, choose the team member and choose Edit.

  5. Select Allow SSH access to project instances, and then choose Edit team member.

  6. (Optional) Notify the team members that they should upload an SSH public key for their AWS CodeStar users, if they have not already done so. For more information, see Add a Public Key to Your AWS CodeStar User Profile .

Manage Team Permissions (AWS CLI)

You can use the AWS CLI to manage the project role assigned to a team member. You can use the same AWS CLI commands to manage whether that team member has remote access to Amazon EC2 instances associated with your project.

To manage the permissions for a team member
  1. Open a terminal or command window.

  2. Run the update-team-member command with the --project-id, -user-arn, and --project-role parameters. You can also specify whether the user has remote access to project instances by including the --remote-access-allowed or --no-remote-access-allowed parameters. For example, to update the project role of an IAM user named John_Doe and change his permissions to viewer with no remote access to project Amazon EC2 instances:

    aws codestar update-team-member --project-id my-first-projec --user-arn arn:aws:iam:111111111111:user/John_Doe --project-role Viewer --no-remote-access-allowed

    This command returns output similar to the following:

    { "projectRole":"Viewer", "remoteAccessAllowed":false, "userArn":"arn:aws:iam::111111111111:user/John_Doe" }