Skip to content

awslabs/well-architected-lab200-pricing-model-analysis-terraform-module

aws_tf_pricing_model_analysis

You will create two pricing data sources, by using Lambda to download the AWS price list files (On Demand EC2 pricing, and Savings Plans rates from all regions) and extract the pricing components required. You can configure CloudWatch Events to periodically run these functions to ensure you have the most up to date pricing and the latest instances in your data. It is the linked to the AWS Well Architected Lab: LEVEL 200: PRICING MODEL ANALYSIS Please replacce with your region below.

Usage


provider "aws" {
  region  = "eu-west-1"
}


module "aws_tf_pricing_model_analysis" {
  source = "github.com/awslabs/well-architected-lab200-pricing-model-analysis-terraform-module"
  region = "eu-west-1"
  bucket_name = "cost-unique-bucketname"
}

NOTE

If you wish to deploy to your linked account you will need to deploy a role to access your Organization in your Management account. See below Deploying into linked account.


Optional Inputs

Name Description Type Default Required
region The region you wish this to be deployed into string "" yes
bucket_name A bucket will be created for your files. This must be unique and start with cost string "" yes
pricing_db_name Athena Database your table will be created in string "pricing" no
weekly_cron Cloudwatch cron to pull the data string "cron(07 1 ? * MON *)" no
env Environment prefix if needed string "" no

Prerequisites

Permissions required

Log in as the Cost Optimization team, created in AWS Account Setup Additional: Create a Lambda function with associated IAM roles, trigger it via CloudWatch

Security

See CONTRIBUTING for more information.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published