Skip to content

Commit

Permalink
add null resouce back
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Apr 1, 2021
1 parent f57530f commit 8227376
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions iam-saml/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ No requirements.
|------|---------|
| <a name="provider_aws"></a> [aws](#provider\_aws) | n/a |
| <a name="provider_external"></a> [external](#provider\_external) | n/a |
| <a name="provider_null"></a> [null](#provider\_null) | n/a |

## Modules

Expand All @@ -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 |
Expand Down
9 changes: 5 additions & 4 deletions iam-saml/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 8227376

Please sign in to comment.