Stacktape

Sign up

Stacktape

Sign up



Enabling budgeting

Introduction


  • To use budget control, you need to:

    1. Enable cost explorer in your account (if you have not used cost explorer previously) - using root account.
    2. Activate Stacktape cost allocation tags in the AWS console - using root account.
  • This guide will walk you through both of these.

To complete this tutorial, you need to be logged in as AWS root user (root account).

1. Enabling Cost Explorer

1.1. Go to Billing -> Cost Explorer page

Login to AWS console as a root user and visit cost explorer page in the billing section.

Cost explorer
Cost explorer

1.2. Launch the cost explorer

Launch the Cost Explorer using the button Launch Cost Explorer.

Launch cost explorer
Launch cost explorer

If this is your first time launching Cost Explorer you should receive the following message.

Cost explorer message
Cost explorer message

It can take up to 24 hours for Cost Explorer to be activated. This is an AWS limitation.

2. Activate cost allocation tags

  • Activating cost allocation tags allows Stacktape to correctly aggregate costs of resources in your stacks.

  • Stacktape automatically tags resources in your stacks with custom tags. Based on these tags, Cost Explorer can determine which resources are part of the stack and associate costs of these resources to the stack.

  • For these custom tags to be usable by Cost Explorer, you need to activate them as cost allocation tags.

2.1. Go to Billing -> Cost allocation tags page

Login to AWS console and visit cost allocation tags tab in the billing section.

Billing - tags
Billing - tags

2.2. Activate required cost allocation tags

The list will show all tags that have been previously used to tag a resource in this account.

If you have already deployed a stack using Stacktape, all the required tags should be listed here.

The following tags are required:

  • stp:globally-unique-stack-hash
  • stp:service-name
  • stp:stack-name
  • stp:stage

It can take up to 24 hours for these tags to appear in the console after being used. This is an AWS limitation.

Select all the required tags and activate them by clicking on Activate button in the top right corner.

Activating tags
Activating tags

After the activation, tags should be marked as Active.

It can take up to 24 hours after activating the tags before you can start using them in

budget control. This is an AWS limitation.

Active tags
Active tags

Need help? Ask a question on Discord or info@stacktape.com.