-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from dtappert/add-instance-access-control-attr…
…ibutes Add instance access control attributes
- Loading branch information
Showing
11 changed files
with
149 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
v1.0.1 | ||
v1.0.2 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
This directory contains examples of using the module to **create** instance access control attributes. | ||
|
||
```hcl | ||
sso_instance_access_control_attributes = [ | ||
{ | ||
attribute_name = "FirstName" | ||
source = ["$${path:name.givenName}"] | ||
}, | ||
{ | ||
attribute_name = "LastName" | ||
source = ["$${path:name.familyName}"] | ||
} | ||
] | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<!-- BEGIN_TF_DOCS --> | ||
This directory contains examples of using the module to **create** instance access control attributes. | ||
|
||
```hcl | ||
sso_instance_access_control_attributes = [ | ||
{ | ||
attribute_name = "FirstName" | ||
source = ["$${path:name.givenName}"] | ||
}, | ||
{ | ||
attribute_name = "LastName" | ||
source = ["$${path:name.familyName}"] | ||
} | ||
] | ||
``` | ||
|
||
## Requirements | ||
|
||
No requirements. | ||
|
||
## Providers | ||
|
||
| Name | Version | | ||
|------|---------| | ||
| <a name="provider_aws"></a> [aws](#provider\_aws) | n/a | | ||
|
||
## Modules | ||
|
||
| Name | Source | Version | | ||
|------|--------|---------| | ||
| <a name="module_aws-iam-identity-center"></a> [aws-iam-identity-center](#module\_aws-iam-identity-center) | ../.. | n/a | | ||
|
||
## Resources | ||
|
||
| Name | Type | | ||
|------|------| | ||
| [aws_ssm_parameter.account1_account_id](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/ssm_parameter) | data source | | ||
|
||
## Inputs | ||
|
||
No inputs. | ||
|
||
## Outputs | ||
|
||
No outputs. | ||
<!-- END_TF_DOCS --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Fetch Account Id from SSM Parameter Store | ||
data "aws_ssm_parameter" "account1_account_id" { | ||
name = "tf-aws-iam-idc-module-testing-account1-account-id" // replace with your SSM Parameter Key | ||
} | ||
|
||
locals { | ||
# Account IDs | ||
account1_account_id = nonsensitive(data.aws_ssm_parameter.account1_account_id.value) | ||
# account1_account_id = "111111111111" | ||
# account2_account_id = "222222222222" | ||
# account3_account_id = "333333333333" | ||
# account4_account_id = "444444444444" | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
module "aws-iam-identity-center" { | ||
source = "../.." // local example | ||
|
||
//Create desired access control attributes | ||
sso_instance_access_control_attributes = [ | ||
{ | ||
attribute_name = "FirstName" | ||
source = ["$${path:name.givenName}"] | ||
}, | ||
{ | ||
attribute_name = "LastName" | ||
source = ["$${path:name.familyName}"] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,4 @@ run "e2e_test" { | |
module { | ||
source = "./examples/create-users-and-groups" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
run "unit_test" { | ||
command = plan | ||
module { | ||
source = "./examples/instance-access-control-attributes" | ||
} | ||
} | ||
|
||
run "e2e_test" { | ||
command = apply | ||
module { | ||
source = "./examples/instance-access-control-attributes" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters