Turn on Cost Insights
Cost Insights shows the cloud costs of your components, read from AWS Cost Explorer. You turn it on, then you tell Astrolabe which AWS account to read.
Before you startβ
You need to be an administrator, and to know the ID of your AWS account and the AWS region of
Cost Explorer (for example eu-west-1).
π Turn on the pluginβ
-
In the left sidebar, at the bottom, click Administration.
-
Under PLATFORM, click Plugins.
-
On the Cost Insights card, click the switch at the top right. It turns on at once.
The card now says Needs configuration. Each component now has a Costs tab. Until Cost Insights is set up, it says Cost Insights is not configured yet, and Administration βΊ Problems lists Cost Insights with Switched on, but not configured yet.
π§ Enter the settingsβ
-
On the Cost Insights card, click Configure.
-
Fill in the fields:
Field What to write Example Account ID The AWS account whose costs are read 123456789012Region The AWS region of the Cost Explorer endpoint eu-west-1Cost metric The Cost Explorer metric (optional) UnblendedCostAccess key ID and Secret access key Leave both empty to use the credentials of the machine that runs Astrolabe -
Click Save. The message Settings saved. appears at the bottom left of the screen and goes away by itself. The line at the top changes from Still waiting for: Account ID, Region to This plugin is configured.
Open a component from Catalog and click its Costs tab: it opens on Total cost, titled Cloud Cost, with a Past 6 Months button. The figures it shows once AWS answers were not checked on a live instance.
π·οΈ Link a component to its costsβ
Add this annotation to the catalog-info.yaml of the component, with the AWS tag that marks its
resources:
metadata:
annotations:
aws.amazon.com/cost-insights-tags: Team=platform-team
This step was not checked on a live instance.
β That's it!