Update an environment
If the AWS Proton environment is associated with an environment account connection,
don't update or include the protonServiceRoleArn
parameter
to update or connect to an environment account connection.
You can only update to a new environment account connection if both of the following is true:
-
The environment account connection was created in the same environment account that the current environment account connection was created in.
-
>The environment account connection is associated with the current environment.
If the environment isn’t associated with an environment account
connection, don’t update or include the
environmentAccountConnectionId
parameter.
You can update either the environmentAccountConnectionId
or
protonServiceRoleArn
parameter and value. You can’t update both.
If your environment uses self-managed provisioning, don't update the
provisioning-repository
parameter and omit the
environmentAccountConnectionId
and protonServiceRoleArn
parameters.
There are four modes for updating an environment as described in the following list. When
using the AWS CLI, the deployment-type
field defines the mode. When using the
console, these modes map to the Edit, Update,
Update minor, and Update major actions that drop
down from Actions.
-
NONE
In this mode, a deployment doesn't occur. Only the requested metadata parameters are updated.
-
CURRENT_VERSION
In this mode, the environment is deployed and updated with the new spec that you provide. Only requested parameters are updated. Don’t include minor or major version parameters when you use this
deployment-type
. -
MINOR_VERSION
In this mode, the environment is deployed and updated with the published, recommended (latest) minor version of the current major version in use by default. You can also specify a different minor version of the current major version in use.
-
MAJOR_VERSION
In this mode, the environment is deployed and updated with the published, recommended (latest) major and minor version of the current template by default. You can also specify a different major version that is higher than the major version in use and a minor version (optional).
Topics
Update an AWS managed provisioning environment
Standard provisioning is only supported by environments that provision with AWS CloudFormation.
Use the console or AWS CLI to update your environment.
Update an environment using the console as shown in the following steps.
-
Choose 1 of the following 2 steps.
-
In the list of environments.
-
In the AWS Proton console
, choose Environments. -
In the list of environments, choose the radio button to the left of the environment that you want to update.
-
-
In the console environment detail page.
-
In the AWS Proton console
, choose Environments. -
In the list of environments, choose the name of the environment that you want to update.
-
-
-
Choose 1 of the next 4 steps to update your environment.
-
To make an edit that doesn't require environment deployment.
-
For example, to change a description.
Choose Edit.
-
Fill out the form and choose Next.
-
Review your edit and choose Update.
-
-
To make updates to metadata inputs only.
-
Choose Actions and then Update.
-
Fill out the form and choose Edit.
-
Fill out the forms and choose Next until you reach the Review page.
-
Review your updates and choose Update.
-
-
To make an update to a new minor version of its environment template.
-
Choose Actions and then Update minor.
-
Fill out the form and choose Next.
-
Fill out the forms and choose Next until you reach the Review page.
-
Review your updates and choose Update.
-
-
To make an update to a new major version of its environment template.
-
Choose Actions and then Update major.
-
Fill out the form and choose Next.
-
Fill out the forms and choose Next until you reach the Review page.
-
Review your updates and choose Update.
-
-
Update a self-managed provisioning environment
Self-managed provisioning is only supported by environments that provision with Terraform.
Use the console or AWS CLI to update your environment.
Update an environment using the console as shown in the following steps.
-
Choose 1 of the following 2 steps.
-
In the list of environments.
-
In the AWS Proton console
, choose Environments. -
In the list of environments, choose the radio button to the left of the environment template that you want to update.
-
-
In the console environment detail page.
-
In the AWS Proton console
, choose Environments. -
In the list of environments, choose the name of the environment that you want to update.
-
-
-
Choose 1 of the next 4 steps to update your environment.
-
To make an edit that doesn't require environment deployment.
-
For example, to change a description.
Choose Edit.
-
Fill out the form and choose Next.
-
Review your edit and choose Update.
-
-
To make updates to metadata inputs only.
-
Choose Actions and then Update.
-
Fill out the form and choose Edit.
-
Fill out the forms and choose Next until you reach the Review page.
-
Review your updates and choose Update.
-
-
To make an update to a new minor version of its environment template.
-
Choose Actions and then Update minor.
-
Fill out the form and choose Next.
-
Fill out the forms and choose Next until you reach the Review page.
-
Review your updates and choose Update.
-
-
To make an update to a new major version of its environment template.
-
Choose Actions and then Update major.
-
Fill out the form and choose Next.
-
Fill out the forms and choose Next until you reach the Review page.
-
Review your updates and choose Update.
-
-
Cancel an environment deployment in progress
You can attempt to cancel an environment update deployment if the
deploymentStatus
is in IN_PROGRESS
. AWS Proton attempts to cancel the
deployment. Successful cancellation isn’t guaranteed.
When you cancel an update deployment, AWS Proton attempts to cancel the deployment as listed in the following steps.
With AWS-managed provisioning, AWS Proton does the following:
-
Sets the deployment state to
CANCELLING
. -
Stops the deployment in progress and deletes any new resources that were created by the deployment when
IN_PROGRESS
. -
Sets the deployment state to
CANCELLED
. -
Reverts the state of the resource to what it was before the deployment was started.
With self-managed provisioning, AWS Proton does the following:
-
Attempts to close the pull request to prevent merging the changes to your repository.
-
Sets the deployment state to
CANCELLED
if the pull request was successfully closed.
For instructions on how to cancel an environment deployment, see CancelEnvironmentDeployment in the AWS Proton API Reference.
You can use the console or CLI to cancel environments that are in progress.
Use the console to cancel an environment update deployment as shown in the following steps.
-
In the AWS Proton console
, choose Environments in the navigation pane. -
In the list of environments, choose the name of the environment with the deployment update that you want to cancel.
-
If your update deployment status is In progress, in the environment detail page, choose Actions and then Cancel deployment.
-
A modal prompts you to confirm that you want to cancel. Choose Cancel deployment.
-
Your update deployment status is set to Cancelling and then Cancelled to complete the cancellation.