Upgrade your c7n-mailer and other components

step by step instructions on how to upgrade the Cloud Custodian version and other related tools

Identifying the old version and upgrading c7n

Identifying the old version and upgrading c7n-mailer

  1. Identify the current version of c7n-mailer by running the below command. Scroll down to look for c7n-mailer. From the below screenshot you will notice that we have c7n-mailer version 0.6.9.
pip freeze         or
pip freeze | grep c7n
Output from pip freeze

3. Use the following command to upgrade your c7n-mailer to the latest version.

pip3 install c7n-mailer==0.6.15

In order to run the above command, you must first know the latest version for the c7n-mailer. I tried searching on the Cloud Custodian documentation but had no luck in identifying the latest version for c7n-mailer (see below screenshot)

No version information on cloudcustodian.io

Follow the below steps to identify the latest version of the c7n-mailer-

  1. Go to the Github page of the c7n-mailer + Cloud Custodian- https://github.com/cloud-custodian/cloud-custodian/tree/master/tools/c7n_mailer
  2. Click on setup.py (open the file)
  3. Somewhere in the code, you will find the setup argument which will tell you the latest version of the c7n-mailer. In this scenario, version 0.6.15 is the newest version.
Screenshot from Github — Cloud Custodian Tools/c7n-mailer

4. Once the installation is completed. The system will show you the successfully installed message.

Successfully Installed Message- System Prompt

Identifying the old version and upgrading c7n-azure

  1. Identify the current version of c7n-azure by running the below command. The azure is broken into different components as shown below and each one of them has its own version.
pip freeze  or
pip freeze | grep azure
Screenshot from pip freeze

Follow the below steps to identify the latest version of the c7n-azure:

  1. Go to the Github page of the c7n-azure + Cloud Custodian- https://github.com/cloud-custodian/cloud-custodian/blob/master/tools/c7n_azure
  2. Click on setup.py (open the file)
  3. Somewhere in the code, you will find the setup argument which will tell you the latest version of the c7n-azure. In this scenario, version 0.7.15 is the newest version.

4. Use the following command to upgrade your c7n-azure to the latest version.

pip3 install c7n-azure==0.7.15

This will update all the corresponding azure management versions and everything within it.

Upgrading Multiple Packages Simultaneously

python -m pip install --upgrade c7n c7n-mailer c7n-azure c7n-...

Other Stories

What is a Cloud Custodian?

Cloud Custodian Policy Health Checks

Cloud Custodian [GZ] Output Files

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Aakif Shaikh, CISSP, CEH, CHFI, CISA, GWAPT

Over 18 years of experience in a wide variety of technical domains within information security including information assurance, compliance, and risk management.