From 8227376a2a57ff03da0cc285edf2938ef6420c03 Mon Sep 17 00:00:00 2001 From: badra001 Date: Thu, 1 Apr 2021 09:39:03 -0400 Subject: [PATCH] add null resouce back --- iam-saml/README.md | 2 ++ iam-saml/main.tf | 9 +++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/iam-saml/README.md b/iam-saml/README.md index 85d2582..22340fa 100644 --- a/iam-saml/README.md +++ b/iam-saml/README.md @@ -40,6 +40,7 @@ No requirements. |------|---------| | [aws](#provider\_aws) | n/a | | [external](#provider\_external) | n/a | +| [null](#provider\_null) | n/a | ## Modules @@ -50,6 +51,7 @@ No modules. | Name | Type | |------|------| | [aws_iam_saml_provider.saml](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_saml_provider) | resource | +| [null_resource.saml_metadata](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource | | [aws_arn.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/arn) | data source | | [aws_caller_identity.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity) | data source | | [aws_iam_policy_document.saml_assume](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source | diff --git a/iam-saml/main.tf b/iam-saml/main.tf index 44dadbe..67cb0c8 100644 --- a/iam-saml/main.tf +++ b/iam-saml/main.tf @@ -47,10 +47,11 @@ locals { } } -## resource "null_resource" "saml_metadata" { -## provisioner "local-exec" { -## command = "test -d ${path.root}/setup || mkdir ${path.root}/setup" -## } +resource "null_resource" "saml_metadata" { + provisioner "local-exec" { + command = "test -d ${path.root}/setup || mkdir ${path.root}/setup" + } +} ## ## provisioner "local-exec" { ## command = "bash ${path.module}/bin/get-saml-metadata.sh > ${path.root}/setup/metadata.xml"