feat: Add identitystore group and user data source dependency null resources #17
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Add null resources which will trigger identitystore group and user data source refresh. This allows to create SSO users and groups in the same state file as
terraform-aws-sso
module resources and without addingdepends_on
argument at the module level. (checkwith_dependencies
example). When usingnull
resource instead ofdepends_on
, it will only recreate account assignments, when aa new SSO group is added. It will NOT re-create all module resources, after a new AWS Account is added.Breaking Changes
When updating the module version, it will re-create all account assignments on the first terraform apply as it creates null_resources, so can disconnect the sessions and require re-authentication.
Testing
Tested manually.