Upgrading InsightCloudSec - AWS Terraform
This document explains how to upgrade your InsightCloudSec deployment on AWS if you are currently using Terraform modules. The process is straightforward and can be done in a few minutes.
Prerequisites
These instructions assume that you have the following:
- A functioning InsightCloudSec platform installation
- Appropriate admin permissions to upgrade your environment
- Are upgrading a self-hosted deployment (as opposed to a hosted customer)
Refer to our release documentation for new or revised permissions required by the new version of the application and for any configuration changes necessary. If you have any plugins or overrides, reach out to us through any option listed on the Getting Support Page
The content/steps provided on this page apply to self-hosted customers. For hosted customers, we recommend that you contact your CSM or through the Customer Support Portal with any questions or concerns.
Steps to Upgrade
Recommendations - Test First
Run the upgrade procedure below in a non-production environment for testing before upgrading your production environment.
In addition, while some steps may refer to DivvyCloud vs. InsightCloudSec the behavior is the same.
Create RDS Snapshot
- From the RDS Console, take a snapshot of your RDS instance.
- Confirm the snapshot has a green Available status.
(Optional) Fetch latest Terraform modules
- In your Terraform folder, run the following command:
shell
1terraform init -upgrade
Check for Environment Consistency
- Run a plan to check if there are any environment inconsistencies and if there are any changes proposed from the latest InsightCloudSec Terraform modules, ensuring you replace
VAR-FILE
in the example below with the name of yourtfvars
file.
shell
1terraform plan -var-file=VAR-FILE.tfvars
- Review the output from this plan for any changes.
- Watch for changes made outside of Terraform that Terraform is trying to revert.
- If you do not understand what the changes are being made at this step reach out to us through the Customer Support Portal.
- If there are pending changes to bring the environment consistent, apply them, ensuring again that you replace
VAR-FILE
in the example below with the name of yourtfvars
file.
shell
1terraform apply -var-file=VAR-FILE.tfvars
Set new InsightCloudSec version
- Modify your
tfvars
file to update the InsightCloudSec version
VAR-FILE.tfvars
1// InsightCloudSec container/version to deploy2divvycloud_version = "divvycloud/divvycloud:v21.5.2"
- Run a Terraform plan and confirm that Terraform is only asking to change 4 (or optionally 5 if using Access Explorer resources.
shell
1terraform apply -var-file=VAR-FILE.tfvars
- Answer with
yes
to apply the version change.
Validation
Open up CloudWatch and browse to the log group for your environment. It will most likely be the name DivvyCloud-Logs
without /aws/
in the name. Verify the scheduler shows as Completed DB upgrade
.