optimization-as-code

densify-dev/optimization-as-code/null

Terraform Module HCL NULL

Module to integrate Terraform with Densify machine learning to enable cloud and container workloads to be self-optimizing

Install
module "optimization-as-code" {
source = "densify-dev/optimization-as-code/null"
version = "2.0.3"
}
plain text: /constructs/tfmod-densify-dev-optimization-as-code-null/install.txt
⭐ Source on GitHub 📦 Registry page
README

Densify This module is the interface between Densify machine learning analytics and Terraform templates. It enables two operations: - auto-tagging of cloud instances and containers based on Densify’s optimization analysis (making them “self-aware”) - automated optimization of instance families/sizes, and container resource requests/limits (making them “self-optimizing”) This integration is based on densify.auto.tfvars, which is automatically generated by Densify and contains operational intelligence, analysis findings, and optimization recommendations for each cloud instance or container in scope. This module unpacks data from this structure, making it available to Terraform as variables, enabling precise specification of resources to optimally match the learned patterns of behavior. The r

Inputs (3)
NameTypeDescriptionDefault
densify_recommendationsmap(map(string))Map of maps generated from the Densify Terraform Forwarder. Contains all of the required
densify_unique_idstringUnique ID that both Terraform and Densify can use to track the systems. required
densify_fallbackmap(string)Fallback map of settings that are used for new infrastructure or systems that ar required
Outputs (42)
cpu_request — The CPU request to be implemented, which is either the current CPU request or the Densify recommenda
current_desired_capacity — The current desired number of instances running in the ASG group
power_state — The power state of the instance
recommended_type — Densify recommended instance size and family
savings_estimate — The potential monthly savings from modifying the current instance to the Densify recommended instanc
instance_type — The instance size and family to be implemented, which is either the current size or the Densify reco
mem_request — The memory request to be implemented, which is either the current memory request or the Densify reco
cluster — The name of the cluster with the running container
predicted_uptime — The predicted percentage of CPU utilization hours over the duration of a month
recommended_cpu_request — Recommended CPU request for the Kubernetes container
min_group_recommended — The recommended minimum group size of the ASG
max_group_recommended — The recommended maximum group size of the ASG
current_cpu_request — Current CPU request for the Kubernetes container
policy — The policy that is used in the analysis
avg_inst_count_recommended — The predicted average number of instances running in the ASG if the recommendations are implemented
namespace — The namespace of the running container
container — The name of the container
avg_inst_count_current — The current average number of instances running in the ASG
current_type — Current instance size and family
current_mem_limit — Current memory limit for the Kubernetes container
min_group_current — The current minimum group size of the ASG
max_group_current — The current maximum group size of the ASG
min_group — The minimum group size to be implemented, which is either the current minimum group size or the Dens
desired_capacity — The desired capacity to be implemented, which is either the current desired capacity or the recommen
pod_service — The pod or service name of the running container. If the container is running in a single pod, then
controller_type — The type of controller
defer_recommendation — Defer recommending an instance type change until reserved instance coverage for this instance expire
defer_until — If deferRecommendation = yes, then the expiry date of the RI providing coverage for the current inst
implementation_method — Is the system configured to allow automation or manual recommendations
current_cpu_limit — Current CPU limit for the Kubernetes container
… and 12 more outputs
Resources (1)
null_resource
Details
FrameworkTerraform Module
LanguageHCL
Version2.0.3
Cloud NULL
★ Stars6
Forks8
Total downloads1.7k
Inputs3
Outputs42
Resources1
Examples8
LicenseApache-2.0
Namespacedensify-dev
Updated