Feature Flags with Cloud Cost Module Overview
Feature Flag with Cloud Cost Management tool is a new feature that will enable you to easily identify cost anomalies when enabling a feature. The Feature Flags module integrates with the Harness Cloud Cost Management (CCM) and is able to identify potential correlations between flag change events and cost anomalies.
From the UI within the Harness Application, you'll be able to report the presence of anomalies which will make it easier for you to find which flags may be related to the reported anomalies.
There are pre-requisites in order to use this feature which you can below in the Setting Up Cloud Cost Management in Feature Flags.
If you'd like to learn more about the various types of costs within Cloud Cost Management, have a look at Harness' Cloud Cost Management Key Concepts page.
Why use the Cloud Cost Management tool within Feature Flags?
Using Cloud Cost Management within Feature Flags will help you to:
-
Increase Visibility: You're able to gain insights into the cost of your Feature Flags.
-
Have an Improved Proactive Cost Management Experience: You can now have real-time insights into the impact of your Feature Flag changes and optimize your cloud spending into a less manual and time-consuming process.
-
Adopt Higher Level Troubleshooting: The hope we have at Harness is that this will help you to reduce time to finding solutions around any cost disparaties as well as help to improve your operational effiency of your products.
We've also added an additional feature to the Cloud Cost Monitoring tool. There are three status modes which helps us to categorise anomalies under Monitoring, Anomaly Found and No Changes.
Setting Up Cloud Cost Management in Feature Flags
How To Set Up The CCM Feature For Your Environments
- On the Home Page of the Harness Application, select Environmentss.
- On the Environments page, you should see the option to open Add Cloud Cost Monitoring.
- If you are yet to set up your CCM with your Cloud Provider, check the instructions below.
How To Set Up The CCM Feature For Your Flags
- On the Home Page of the Harness Application, select your Project and click on Feature Flags.
- Under the dropdown menu that appears, click Feature Flags. This should take you to the dashboard of the Feature Flags page of your project.
- Click on one of your pre-existing Feature Flags on your dashboard.
- On the left hand side, the option to toggle Cloud Cost Monitoring should appear.
If you haven't set up your Harness account to your Cloud Provider before, the option to do so will appear.
If you haven't already created any Feature Flags, do follow the Harness 'Create a Feature Flag' documentation.
To set up your Cloud Provider with your account, follow the instructions which aligns with your Cloud Provider:
Setting Up Cloud Cost Management With Your Cloud Providers
Connect CCM For AWS
AWS Connector requirements
- The same connector cannot be used in NextGen and FirstGen.
- For CCM, AWS connectors are available only at the Account level in Harness.
- If you have multiple AWS accounts, you may need to create multiple AWS connectors depending on desired functionality:
- Cost Visibility: You may need to create one or multiple AWS connectors depending on the availability of consolidated billing. Go to Cost and Usage Reports (CUR) for more information.
- Resource Inventory Management: You need to create an AWS connector for each account.
- Optimization by AutoStopping: You need to create an AWS connector for each account.
Cost and Usage Reports (CUR)
- Multiple Accounts with Consolidated Billing
- Multiple Accounts
- Single Account
-
If you have consolidated billing process enabled, then you need to create only a single CUR for the management account. This provides cost data for all member accounts in the organization.
-
For the Cost Visibility feature alone, you will only need a single AWS connector configured with the management account CUR.
-
In order to take advantage of other features such as Inventory Management and AutoStopping, you need to create a connector for each member account:
- If you are using the UI to create the additional connectors, configure all connectors with the same management account CUR.
- If you are using the API to create the additional connectors, you can omit billing information altogether.
-
If you do not have consolidated billing process