Skip to content

Commit

Permalink
Merge pull request #10 from DNXLabs/adding_optimizer
Browse files Browse the repository at this point in the history
Adding Cost Optmizer variable
  • Loading branch information
mvsnogueira-dnx committed May 15, 2024
2 parents 8445435 + aab95a1 commit 116866f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions _variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,14 @@ variable "already_exists" {
variable "enable_aws_sso" {
default = false
description = "Whether the AWS SSO needs to be enabled when creating a new organisation"
}

variable "enable_compute_optimizer" {
default = false
description = "Whether the AWS Compute Optimizer needs to be enabled when creating a new organisation"
}

variable "enable_cost_optimizer" {
default = false
description = "Whether the AWS Compute Optimize needs to be enabled when creating a new organisation"
}
2 changes: 2 additions & 0 deletions organization.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ resource "aws_organizations_organization" "org" {
"cloudtrail.amazonaws.com",
"config.amazonaws.com",
var.enable_aws_sso ? "sso.amazonaws.com" : "",
var.enable_compute_optimizer ? "compute-optimizer.amazonaws.com" : "",
var.enable_cost_optimizer ? "cost-optimization-hub.bcm.amazonaws.com" : "",
]

enabled_policy_types = ["SERVICE_CONTROL_POLICY"]
Expand Down

0 comments on commit 116866f

Please sign in to comment.