Create a service
To deploy an application with AWS Proton, as a developer, you create a service and provide the following inputs.
-
The name of an AWS Proton service template that's published by the platform team.
-
A name for the service.
-
The number of service instances that you want to deploy.
-
A selection of environments that you want to use.
-
A connection to your code repository if you're using a service template that includes a service pipeline (optional).
What's in a service?
When you create an AWS Proton service, you can choose from two different types of service templates:
-
A service template that includes a service pipeline (default).
-
A service template that doesn't include a service pipeline.
You must create at least one service instance when you create your service.
A service instance and optional pipeline are associated with a service. You can only create or delete a pipeline within the context of service create and delete actions. To learn how to add and remove instances from a service, see Edit a service.
Note
Your environment is configured for either AWS- or self-managed provisioning. AWS Proton provisions services in an environment using the same provisioning method as the environment uses. The developer creating or updating service instances doesn't see the difference and their experience is the same in both case.
For more information about provisioning methods, see How AWS Proton provisions infrastructure.
Service templates
Both major and minor versions of service templates are available. When you use the console, you select the latest Recommended
major and
minor version of the service template. When you use the AWS CLI and you specify only the major version of the service template, you implicitly specify its
latest Recommended
minor version.
The following describes the difference between major and minor template versions and their use.
-
New versions of a template become
Recommended
as soon as they're approved by a member of the platform team. This means that new services are created using that version, and you're prompted to update existing services to the new version. -
Through AWS Proton, the platform team can automatically update service instances to a new minor version of a service template. Minor versions must be backward compatible.
-
Because major versions require you to provide new inputs as part of the update process, you need to update your service to a major version of its service template. Major versions aren't backward compatible.
Create a service
The following procedures show how to use the AWS Proton console or AWS CLI to create a service with or without a service pipeline.
Create a service as shown in the following console steps.
-
In the AWS Proton console
, choose Services. -
Choose Create service.
-
In the Choose a service template page, select a template and choose Configure.
When you don't want to use an enabled pipeline, choose a template marked with Excludes pipeline for your service.
-
In the Configure service page, in the Service settings section, enter an Service name.
-
(Optional) Enter a description for the service.
-
In the Service repository settings section:
-
For CodeStar Connection, choose your connection from the list.
-
For Repository ID, choose the name of your source code repository from the list.
-
For Branch name, choose the name of your source code repository branch from the list.
-
-
(Optional) In the Tags section, choose Add new tag and enter a key and value to create a customer managed tag.
-
Choose Next.
-
In the Configure custom settings page, in the Service instances section, in the New instance section. You must enter values for the
required
parameters. You can enter values for theoptional
parameters or use the defaults when given. -
In the Pipeline inputs section, you must enter values for the
required
parameters. You can enter values for theoptional
parameters or use the defaults when given. -
Choose Next and review your inputs.
-
Choose Create.
View the service details and status, as well as the AWS managed tags and customer managed tags for your service.
-
In the navigation pane, choose Services.
A new page displays a list of your services along with the status and other service details.