-
-
Save KyMidd/256b8ad9b3d03532df4aaf65ef3afc7c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| locals { | |
| # Find all secret ARNs and output as a list | |
| execution_iam_secrets = try( | |
| flatten([ | |
| for permission_type, permission_targets in var.execution_iam_access : [ | |
| for secret in permission_targets : "${secret}*" | |
| ] | |
| if permission_type == "secrets" | |
| ]), | |
| # If nothing provided, default to empty set | |
| [], | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment