Update a service

How to deploy updated functionality into your environment

Currently, this is a two-step process, first updating the container image and then using OpsCanvas. You will need to find the following values by following these instructions.

  • Name of the service to update

  • Service image URI

  • Account ID

  • Deploy Role

Update the service image

Once the image has been added to the OpsCanvas diagram the following steps can be added to your CI pipeline file.

Log into your OpsCanvas ECR repository

If this is running in your CI pipeline, make sure the pipeline has assumed the deploy role account, e.g. arn:aws:iam:<account-id>:role/<deploy-role> :

aws ecr get-login-password \
--region us-east-1 | \
docker login \
--username AWS \
--password-stdin \
503735464781.dkr.ecr.us-east-1.amazonaws.com

Tag and push the image

Use the image uri listed in the environment information page as the image tag:

docker tag <your service name> <image uri from env info page>
docker push <image uri from env info page>

Once the image has been updated, any new environments deployed will use the new image.

Update your application

Login to https://app.opscanvas.io, navigate to the environments page and find the environment you wish to update.

On the environment tile, click the "Update env" button.

This will take you straight to the deployment configuration screen. You won't need to make any changes to the configuration, simply click "Save and continue" at the bottom of the screen.

After accepting the terms & conditions your application will be re-deployed. NOTE: the services in your Kubernetes cluster will be re-installed, but, the managed infrastructure will not be affected.

Last updated