From b31f8dcca812f198aa3bee5466dc025c051ffdc8 Mon Sep 17 00:00:00 2001 From: Haresh Suresh <39659445+haresh-suresh@users.noreply.github.com> Date: Mon, 26 Aug 2024 10:48:26 -0700 Subject: [PATCH] Internal: set instance & role name to consistent pattern (#8) * Internal: set instance & role name to consistent pattern * set instance name --- modules/config-posture/main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/config-posture/main.tf b/modules/config-posture/main.tf index c0c138c..290e959 100644 --- a/modules/config-posture/main.tf +++ b/modules/config-posture/main.tf @@ -5,7 +5,7 @@ resource "random_id" "suffix" { } locals { - config_posture_role_name = "sysdig-secure-config-posture-${random_id.suffix.hex}" + config_posture_role_name = "sysdig-secure-posture-${random_id.suffix.hex}" } data "sysdig_secure_trusted_cloud_identity" "trusted_identity" { @@ -134,7 +134,7 @@ data "aws_iam_policy_document" "custom_resources_policy" { resource "sysdig_secure_cloud_auth_account_component" "config_posture_role" { account_id = var.sysdig_secure_account_id type = "COMPONENT_TRUSTED_ROLE" - instance = "config-posture" + instance = "secure-posture" version = "v0.1.0" trusted_role_metadata = jsonencode({ aws = {