Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add sustainability pillar #27

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion mod.sp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Benchmarks and controls for specific services should override the "service" tag
locals {
aws_well_architected_common_tags = {
category = "Compliance"
plugin = "aws"
service = "AWS"
}
Expand Down Expand Up @@ -87,5 +86,8 @@ mod "aws_well_architected" {
tag_dimensions = var.tag_dimensions
}
}
mod "github.com/turbot/steampipe-mod-aws-thrifty" {
version = "^0.21.0"
}
}
}
27 changes: 27 additions & 0 deletions well_architected_framework/sustainability/sus02.sp
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
locals {
well_architected_framework_sus02_common_tags = merge(local.well_architected_framework_sustainability_common_tags, {
question_id = "sus_sus_user"
})
}

benchmark "well_architected_framework_sus02" {
title = "SUS02 How do you align cloud resources to your demand?"
description = "Scale infrastructure to continually match demand and verify that you use only the minimum resources required to support your users."
children = [
benchmark.well_architected_framework_sus02_bp03
]

tags = local.well_architected_framework_sus02_common_tags
}

benchmark "well_architected_framework_sus02_bp03" {
title = "BP03 Stop the creation and maintenance of unused assets"
description = "Decommission unused assets in your workload to reduce the number of cloud resources required to support your demand and minimize waste."
children = [
aws_thrifty.control.ecs_cluster_low_utilization,
]

tags = merge(local.well_architected_framework_sus02_common_tags, {
choice_id = "sus_sus_user_a4"
})
}
15 changes: 15 additions & 0 deletions well_architected_framework/sustainability/sustainability.sp
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
locals {
well_architected_framework_sustainability_common_tags = merge(local.well_architected_framework_common_tags, {
pillar_id = "sustainability"
})
}

benchmark "well_architected_framework_sustainability" {
title = "Sustainability"
description = "The Sustainability pillar addresses the long-term environmental, economic, and societal impact of your business activities."
children = [
benchmark.well_architected_framework_sus02
]

tags = local.well_architected_framework_sustainability_common_tags
}
3 changes: 2 additions & 1 deletion well_architected_framework/well_architected_framework.sp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ benchmark "well_architected_framework" {
children = [
benchmark.well_architected_framework_operational_excellence,
benchmark.well_architected_framework_reliability,
benchmark.well_architected_framework_security
benchmark.well_architected_framework_security,
benchmark.well_architected_framework_sustainability
]

tags = local.well_architected_framework_common_tags
Expand Down