Skip to content

Instantly share code, notes, and snippets.

@KyMidd
Created July 10, 2021 19:58
Show Gist options
  • Select an option

  • Save KyMidd/256b8ad9b3d03532df4aaf65ef3afc7c to your computer and use it in GitHub Desktop.

Select an option

Save KyMidd/256b8ad9b3d03532df4aaf65ef3afc7c to your computer and use it in GitHub Desktop.
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