Skip to content

Commit 2947168

Browse files
lgallardclaude
andcommitted
fix: Apply terraform fmt formatting to cost_optimized_backup example
- Fix spacing alignment in outputs.tf and variables.tf - Add missing newlines at end of files - Ensure all files pass terraform fmt validation 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent f2809a0 commit 2947168

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

examples/cost_optimized_backup/outputs.tf

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ output "backup_plan_ids" {
2323
description = "IDs of the backup plans by tier"
2424
value = {
2525
critical_tier = module.cost_optimized_backup.backup_plan_ids["critical_tier"]
26-
standard_tier = module.cost_optimized_backup.backup_plan_ids["standard_tier"]
26+
standard_tier = module.cost_optimized_backup.backup_plan_ids["standard_tier"]
2727
development_tier = module.cost_optimized_backup.backup_plan_ids["development_tier"]
2828
}
2929
}
@@ -46,23 +46,23 @@ output "cost_optimization_summary" {
4646
description = "Summary of cost optimization strategies implemented"
4747
value = {
4848
critical_tier = {
49-
frequency = "Every 6 hours"
50-
cold_transition = "1 day"
51-
retention_period = "30 days"
52-
estimated_cost = "~$5/month per 100GB"
49+
frequency = "Every 6 hours"
50+
cold_transition = "1 day"
51+
retention_period = "30 days"
52+
estimated_cost = "~$5/month per 100GB"
5353
}
5454
standard_tier = {
55-
frequency = "Daily"
56-
cold_transition = "30 days"
57-
retention_period = "90 days"
58-
estimated_cost = "~$7/month per 100GB"
55+
frequency = "Daily"
56+
cold_transition = "30 days"
57+
retention_period = "90 days"
58+
estimated_cost = "~$7/month per 100GB"
5959
}
6060
development_tier = {
61-
frequency = "Weekly"
62-
cold_transition = "None"
63-
retention_period = "7 days"
64-
estimated_cost = "~$1/month per 100GB"
61+
frequency = "Weekly"
62+
cold_transition = "None"
63+
retention_period = "7 days"
64+
estimated_cost = "~$1/month per 100GB"
6565
}
6666
total_estimated_savings = "~60% compared to uniform daily backups"
6767
}
68-
}
68+
}

examples/cost_optimized_backup/variables.tf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ variable "environment" {
2222
description = "Environment name (prod, staging, dev)"
2323
type = string
2424
default = "prod"
25-
25+
2626
validation {
2727
condition = contains(["prod", "staging", "dev"], var.environment)
2828
error_message = "Environment must be one of: prod, staging, dev."
@@ -62,9 +62,9 @@ variable "tags" {
6262
description = "A map of tags to assign to resources"
6363
type = map(string)
6464
default = {
65-
Terraform = "true"
66-
Environment = "example"
67-
Purpose = "CostOptimizedBackup"
68-
CostStrategy = "MultiTier"
65+
Terraform = "true"
66+
Environment = "example"
67+
Purpose = "CostOptimizedBackup"
68+
CostStrategy = "MultiTier"
6969
}
70-
}
70+
}

0 commit comments

Comments
 (0)