ec2-pricing

bendrucker/ec2-pricing/aws

Terraform Module HCL AWS

Terraform module that uses the AWS Pricing API to query EC2 instance type attributes

Install
module "ec2-pricing" {
source = "bendrucker/ec2-pricing/aws"
version = "1.0.0"
}
plain text: /constructs/tfmod-bendrucker-ec2-pricing-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

terraform-aws-ec2-pricing ![terraform workflow status](https://github.com/bendrucker/terraform-aws-ec2-pricing/actions?query=workflow%3Aterraform) > Terraform module that uses the AWS Pricing API to query EC2 instance type attributes Usage ``tf module "instance" { source = "bendrucker/ec2-pricing/aws" instance_type = "m5.large" } ` The module exposes outputs that describe key attributes of the specified instance type. These values are helpful for creating monitoring or resource quotas that are defined relative to the instance's capacity. For example, you might pass these along to a kubernetes_resource_quota in order to assign a percentage of cluster capacity to a namespace: `tf locals { # allow developers to use 80% of worker resources # reserve the remaining 20% for system components deve

Inputs (1)
NameTypeDescriptionDefault
instance_typestringEC2 instance type for which attributes will be fetched required
Outputs (2)
cpus — Number of CPU cores available on the instance
memory — Memory available on the instance, in gibibytes (GiB)
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.0
Cloud AWS
★ Stars5
Forks2
Total downloads14.8k
Inputs1
Outputs2
LicenseMIT
Namespacebendrucker
Updated