Assigning a fleet or compute to an action
By default, workflow actions use the Linux.x86-64.Large
on-demand fleet
with an Amazon EC2 compute type. To use a provisioned fleet instead, or to use a different
on-demand fleet, such as Linux.x86-64.2XLarge
, use the following
instructions.
- Visual
-
Before you begin
-
If you want to assign a provisioned fleet, you must first create the provisioned fleet. For more information, see Creating a provisioned fleet.
To assign a provisioned fleet or different fleet type to an action
Open the CodeCatalyst console at https://codecatalyst.aws/
. -
Choose your project.
In the navigation pane, choose CI/CD, and then choose Workflows.
-
Choose the name of your workflow. You can filter by the source repository or branch name where the workflow is defined, or filter by workflow name or status.
-
Choose Edit.
-
Choose Visual.
-
In the workflow diagram, choose the action that you want to assign your provisioned fleet or new fleet type to.
-
Choose the Configuration tab.
-
In Compute fleet, do the following:
Specify the machine or fleet that will run your workflow or workflow actions. With on-demand fleets, when an action starts, the workflow provisions the resources it needs, and the machines are destroyed when the action finishes. Examples of on-demand fleets:
Linux.x86-64.Large
,Linux.x86-64.XLarge
. For more information about on-demand fleets, see On-demand fleet properties.With provisioned fleets, you configure a set of dedicated machines to run your workflow actions. These machines remain idle, ready to process actions immediately. For more information about provisioned fleets, see Provisioned fleet properties.
If
Fleet
is omitted, the default isLinux.x86-64.Large
. -
(Optional) Choose Validate to validate the workflow's YAML code before committing.
-
Choose Commit, enter a commit message, and choose Commit again.
-
- YAML
-
Before you begin
-
If you want to assign a provisioned fleet, you must first create the provisioned fleet. For more information, see Creating a provisioned fleet.
To assign a provisioned fleet or different fleet type to an action
Open the CodeCatalyst console at https://codecatalyst.aws/
. -
Choose your project.
In the navigation pane, choose CI/CD, and then choose Workflows.
-
Choose the name of your workflow. You can filter by the source repository or branch name where the workflow is defined, or filter by workflow name or status.
-
Choose Edit.
-
Choose YAML.
-
Find the action that you want to assign your provisioned fleet or new fleet type to.
-
In the action, add a
Compute
property and setFleet
to the name of your fleet or on-demand fleet type. For more information, see the description of theFleet
property in the Build and test actions YAML for your action. -
(Optional) Choose Validate to validate the workflow's YAML code before committing.
-
Choose Commit, enter a commit message, and choose Commit again.
-