Menu
AWS CodeStar
User Guide

Use Visual Studio with AWS CodeStar

You can use Visual Studio to make code changes and develop software in an AWS CodeStar project.

Note

The information in this topic applies only to AWS CodeStar projects that store their source code in AWS CodeCommit. If your AWS CodeStar project stores its source code in GitHub, you can use a tool such as the GitHub Extension for Visual Studio. For more information, see the Overview page on the GitHub Extension for Visual Studio website and Getting Started with GitHub for Visual Studio on the GitHub website.

If the AWS CodeStar project stores its source code in AWS CodeCommit, to use Visual Studio to edit code in the source repository for an AWS CodeStar project, you must install a version of the AWS Toolkit for Visual Studio that supports AWS CodeStar. You must be a member of the AWS CodeStar project team with the Owner or Contributor role.

To use Visual Studio, you'll also need:

  • An IAM user that has been added to an AWS CodeStar project as a team member.

  • If the AWS CodeStar project stores its source code in AWS CodeCommit, AWS credentials for your IAM user, for example your access key and secret key.

  • Sufficient permissions to install Visual Studio and the AWS Toolkit for Visual Studio on your local computer.

The Toolkit for Visual Studio is a software package you can add to Visual Studio. It is installed and managed in the same way as other software packages in Visual Studio.

To install the Toolkit for Visual Studio with the AWS CodeStar module and configure access to your project repository

  1. Install Visual Studio on your local computer if you don't have a supported version already installed.

  2. Download and install the Toolkit for Visual Studio and save the .zip file to a local folder or directory. When prompted on the Getting Started with the AWS Toolkit for Visual Studio page, type or import your AWS credentials, and then choose Save and Close.

  3. In Visual Studio, open Team Explorer. In Hosted Service Providers, find AWS CodeCommit, and choose Connect.

  4. In Manage Connections, choose Clone. Choose your project's repository and the folder you want to clone the repository into on your local computer, and then choose OK.

  5. If the AWS CodeStar project stores its source code in AWS CodeCommit, and if prompted to create Git credentials, choose Yes. The toolkit will attempt to create credentials on your behalf. Save the credentials file when prompted in a secure location. This is the only opportunity you will have to save these credentials. If the toolkit cannot create credentials on your behalf, or if you chose No, you must create and provide your own Git credentials. For more information, see To set up your computer to commit changes, or follow the on-screen directions.

  6. When you have finished cloning the project, you're ready to start editing your code in Visual Studio and committing and pushing your changes to your project's repository in AWS CodeCommit.