From e627637d21b9d73c71daf85c9f1c9a32b0cb168b Mon Sep 17 00:00:00 2001 From: xpk Date: Thu, 24 Nov 2022 13:55:24 +0800 Subject: [PATCH] UPD: renamed sso module and added outputs --- .../{sso => sso-permissionsets}/README.md | 2 +- .../{sso => sso-permissionsets}/main.tf | 3 ++- .../sso-permissionsets/outputs.tf | 7 +++++++ .../{sso => sso-permissionsets}/variables.tf | 0 4 files changed, 10 insertions(+), 2 deletions(-) rename modules/security_identity_compliance/{sso => sso-permissionsets}/README.md (97%) rename modules/security_identity_compliance/{sso => sso-permissionsets}/main.tf (99%) create mode 100644 modules/security_identity_compliance/sso-permissionsets/outputs.tf rename modules/security_identity_compliance/{sso => sso-permissionsets}/variables.tf (100%) diff --git a/modules/security_identity_compliance/sso/README.md b/modules/security_identity_compliance/sso-permissionsets/README.md similarity index 97% rename from modules/security_identity_compliance/sso/README.md rename to modules/security_identity_compliance/sso-permissionsets/README.md index c59a605..fc3bd26 100644 --- a/modules/security_identity_compliance/sso/README.md +++ b/modules/security_identity_compliance/sso-permissionsets/README.md @@ -1,4 +1,4 @@ -# SSO module +# SSO permission set module ## Root module example ``` diff --git a/modules/security_identity_compliance/sso/main.tf b/modules/security_identity_compliance/sso-permissionsets/main.tf similarity index 99% rename from modules/security_identity_compliance/sso/main.tf rename to modules/security_identity_compliance/sso-permissionsets/main.tf index 6ad121b..b71bc24 100644 --- a/modules/security_identity_compliance/sso/main.tf +++ b/modules/security_identity_compliance/sso-permissionsets/main.tf @@ -12,4 +12,5 @@ resource "aws_ssoadmin_managed_policy_attachment" "psetatt" { instance_arn = tolist(data.aws_ssoadmin_instances.sso1.arns)[0] managed_policy_arn = var.pset-managed-policy-arn permission_set_arn = aws_ssoadmin_permission_set.pset.arn -} \ No newline at end of file +} + diff --git a/modules/security_identity_compliance/sso-permissionsets/outputs.tf b/modules/security_identity_compliance/sso-permissionsets/outputs.tf new file mode 100644 index 0000000..898c17e --- /dev/null +++ b/modules/security_identity_compliance/sso-permissionsets/outputs.tf @@ -0,0 +1,7 @@ +output pset-name { + value = aws_ssoadmin_permission_set.pset.name +} + +output pset-arn { + value = aws_ssoadmin_permission_set.pset.arn +} \ No newline at end of file diff --git a/modules/security_identity_compliance/sso/variables.tf b/modules/security_identity_compliance/sso-permissionsets/variables.tf similarity index 100% rename from modules/security_identity_compliance/sso/variables.tf rename to modules/security_identity_compliance/sso-permissionsets/variables.tf