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

We have already covered this section in another story, please refer here- https://ismsguy.medium.com/upgrade-cloud-custodian-to-the-latest-version-4a2aab465a93

Identifying the old version and upgrading c7n-mailer

  1. Go to the path where Cloud Custodian is installed.
  2. 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)

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.

Identifying the old version and upgrading c7n-azure

  1. Go to the path where Cloud Custodian is installed.
  2. Identify the current version of c7n-azure by running the below command. The azure is broken into…
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.