Upgrade your c7n-mailer and other components

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
pip3 install c7n-mailer==0.6.15
No version information on cloudcustodian.io
  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
Successfully Installed Message- System Prompt

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 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
  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.
pip3 install c7n-azure==0.7.15

Upgrading Multiple Packages Simultaneously

Another method to upgrade several packages simultaneously using the below command-

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

--

--

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

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.