avlcloudtechnologies / terraform-aws-sso

Terraform module to manage AWS Single Sign-On (SSO) resources.
Apache License 2.0
37 stars 33 forks source link

feat: Add identitystore group and user data source dependency null resources #17

Closed aurimasmick closed 9 months ago

aurimasmick commented 9 months ago

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 adding depends_on argument at the module level. (check with_dependencies example). When using null resource instead of depends_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.