Menu
AWS CodeStar
User Guide

AWS CodeStar Project Templates

You can use a AWS CodeStar project template to quickly configure AWS CodeStar to support your development project. These preconfigured AWS CloudFormation templates create projects based on your choices. They include support for development projects like websites, web services, microservices, Alexa Skills, and more. You can use the search box or the filter bar to find a template.

How Do I Choose the Right Template?

Each AWS CodeStar project template includes the supported programming language in its title and description. The template name also indicates whether your project is hosted on servers in the cloud (Amazon EC2, either in a managed application environment (AWS Elastic Beanstalk) or that you manage yourself ) or run serverless (without Amazon EC2 instances, for example on AWS Lambda). If you see two AWS CodeStar project templates that look the same, check the description and the service bar to distinguish the differences.

After you make your choice of an AWS CodeStar project template, the page will display a list of resources that will be created for the project. All of these resources will be configured for you. You do not have to perform any manual configuration to get started with your project. If your project template includes Amazon EC2 instances, you can choose Edit Amazon EC2 Configuration to modify your configuration. Some of these choices, such as instance type, might affect the cost of your project. For more information, see Create a Project in AWS CodeStar and Pricing.


                Editing the configuration details for a project before it's created

Many of the AWS CodeStar project templates allow you to choose from a variety of options to host your web application or service in the cloud. All options offer high availability and scaling. The option you choose is configured when the project is created. You don't have to worry about configuring interoperation or setting permissions. The following table can help you determine the best fit for your software project.

Which hosting option is right for my AWS CodeStar project?

AWS Elastic Beanstalk Amazon EC2 with AWS CodeDeploy AWS Lambda
Automated deployments to Amazon EC2 instances. Automated deployments to Amazon EC2 instances. Serverless (no servers or instances to manage or administer).
Automated management of capacity and load balancing. Flexible deployment to any instance. AWS CodeBuild configured to build your artifacts automatically.
Team member access to Amazon EC2 instances (if your project owner allows it). Team member access to Amazon EC2 instances (if your project owner allows it). Amazon API Gateway configured automatically as a Lambda proxy for GET and POST calls.
End-to-end application management solution. Building block service focused on deploying and updating software. Code executed in response to events.

After your project is created, you can view the sample source code included in your project, including a readme file that provides details of files and directories. This readme file also includes suggestions for how to get started with the sample code.

Web Application

Choose this category if you want a project that will help you develop and deploy a web application. The AWS CodeStar project templates in this category support development in Ruby, Java, ASP.NET, PHP, and more. A source repository and continuous delivery pipeline is configured for you automatically, along with a sample application that you can use to evaluate the AWS CodeStar project. You can choose AWS services to use for your application.

All web application projects include the following resources:

  • A source code repository in AWS CodeCommit or GitHub.

  • A continuous deployment pipeline in AWS CodePipeline.

  • A CPU utilization monitor for Amazon EC2 instances (Amazon EC2 and AWS Elastic Beanstalk projects) or an Invocations and Errors monitor (AWS Lambda projects) in Amazon CloudWatch.

  • Project roles and associated policies in IAM. Policies are applied automatically to IAM users when you add those users to your project team.

  • Sample code for your project, including a README.md with details of the sample.

If you choose an AWS CodeStar project template that uses Lambda, your project will also include the following resources:

  • A build server and environment in AWS CodeBuild.

  • A sample function in Lambda.

  • A RESTful API that exposes the Lambda function in Amazon API Gateway.

  • Roles for job workers in IAM.

If you chose to create a project with AWS Lambda, you can add resources to your AWS CodeStar project by editing the template.yaml file that is included in the sample code for Lambda projects. Configurable resources include:

  • Applications and deployment groups in AWS CodeDeploy.

  • Applications and environments in AWS Elastic Beanstalk.

  • Stages and actions in a pipeline in AWS CodePipeline.

  • Events in Amazon CloudWatch.

  • Build projects in AWS CodeBuild.

Web Service

Choose this category if you want a project that will help you develop and deploy a RESTful web service. This template supports development in Ruby, Java, ASP.NET, PHP, and more. A source repository, build server, and continuous delivery pipeline will be configured for you automatically, along with CloudWatch metrics. This template also includes some sample code you can use to help evaluate the AWS CodeStar project and its resources.

All web service projects include the following resources:

  • A source code repository in AWS CodeCommit or GitHub.

  • A continuous deployment pipeline in AWS CodePipeline.

  • A CPU utilization monitor for Amazon EC2 instances (Amazon EC2 and AWS Elastic Beanstalk projects) or an Invocations and Errors monitor (AWS Lambda projects) in Amazon CloudWatch.

  • Sample code for your project, including a README.md with details of the sample.

If you choose a AWS CodeStar project template that uses Lambda, your project will also include the following resources:

  • A build server and environment in AWS CodeBuild .

  • A sample function in Lambda.

  • A RESTful API that exposes the Lambda function in Amazon API Gateway.

  • Roles for job workers in IAM.

To view application activity in an AWS CodeStar project template that uses Lambda, you must first invoke the function by choosing to visit the host. The host link appears on the Continuous deployment tile of your project.

If you chose to create a project with AWS Lambda, you can add resources to your AWS CodeStar project by editing the template.yaml file that is included in the sample code for Lambda projects. Configurable resources include:

  • Applications and deployment groups in AWS CodeDeploy.

  • Applications and environments in AWS Elastic Beanstalk.

  • Stages and actions in a pipeline in AWS CodePipeline.

  • Events in Amazon CloudWatch.

  • Build projects in AWS CodeBuild.

Amazon Alexa Skill

Choose this template if you want a project for a AWS Lambda function based on an Alexa Skills blueprint for Amazon Alexa. The function returns an Amazon Resource Name (ARN) that you can use as a service endpoint for your Alexa Skill when you configure it in the Alexa Developer Portal. For more information, see Creating an AWS Lambda Function for a Custom Skill.

Note

Lambda functions for Alexa Skills are only supported in the US East (N. Virginia) and EU (Ireland) regions.

All Alexa Skill projects include the following resources:

  • A source code repository in AWS CodeCommit or GitHub.

  • A continuous deployment pipeline in AWS CodePipeline.

  • An Invocations and Errors monitor in Amazon CloudWatch.

  • Sample code for your project, including a README.md with details of the sample.

  • A build server and environment in AWS CodeBuild .

  • A sample function in Lambda.

  • A RESTful API that exposes the Lambda function in Amazon API Gateway.

  • Roles for job workers in IAM.

To view application activity in an AWS CodeStar project template that uses Lambda, you must first invoke the function by choosing to visit the host. The host link appears on the Continuous deployment tile of your project.

You can add resources to your AWS CodeStar project by editing the template.yaml file that is included in the sample code for Lambda projects. Configurable resources include:

  • Applications and deployment groups in AWS CodeDeploy.

  • Applications and environments in AWS Elastic Beanstalk.

  • Stages and actions in a pipeline in AWS CodePipeline.

  • Events in Amazon CloudWatch.

  • Build projects in AWS CodeBuild.