Skip to content

Commit

Permalink
Merge pull request #21 from draios/fix-naming
Browse files Browse the repository at this point in the history
feat(AWS Onboarding): keeping naming of resources deterministic
  • Loading branch information
haresh-suresh authored May 3, 2023
2 parents ba4c212 + e51b5ed commit c9c9aa0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/services/event-bridge/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ resource "aws_cloudwatch_event_target" "sysdig" {
resource "aws_iam_role" "event_bus_invoke_remote_event_bus" {
count = (var.is_organizational || var.deploy_global_resources) ? 1 : 0

name = join("-", [var.name, "MgmtEBRole"])
name = var.name
tags = var.tags

assume_role_policy = <<EOF
Expand Down
6 changes: 3 additions & 3 deletions modules/services/event-bridge/organizational.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ locals {
resource "aws_cloudformation_stack_set" "eb-rule-stackset" {
count = var.is_organizational ? 1 : 0

name = join("-", [var.name, "EBRuleOrg"])
name = var.name
tags = var.tags
permission_model = "SERVICE_MANAGED"
capabilities = ["CAPABILITY_NAMED_IAM"]
Expand Down Expand Up @@ -52,7 +52,7 @@ TEMPLATE
resource "aws_cloudformation_stack_set" "mgmt-stackset" {
count = var.is_organizational ? 1 : 0

name = join("-", [var.name, "EBRuleMgmtAcc"])
name = var.name
tags = var.tags
permission_model = "SELF_MANAGED"
capabilities = ["CAPABILITY_NAMED_IAM"]
Expand Down Expand Up @@ -81,7 +81,7 @@ TEMPLATE
resource "aws_cloudformation_stack_set" "eb-role-stackset" {
count = var.is_organizational ? 1 : 0

name = join("-", [var.name, "EBRoleOrg"])
name = var.name
tags = var.tags
permission_model = "SERVICE_MANAGED"
capabilities = ["CAPABILITY_NAMED_IAM"]
Expand Down

0 comments on commit c9c9aa0

Please sign in to comment.