Open dod38fr opened 1 year ago
Hello
I'm using terragrunt in a company where the account alias is used to create the name of the tfstate bucket.
Currently, we are running an external aws command to list the accounts alias from terragrunt.hcl, but this is brittle.
aws
terragrunt.hcl
To be able to get rid of this brittle code, I need a way to get the list of aliases with a builtin function.
Could you add a new function similar to get_aws_account_id to get the list of account aliases ?
get_aws_account_id
All the best
Note that an account can only have one alias at a time (see doc). So I guess that the new function could be named get_aws_account_alias even if the underlying SDK function is named ListAccountAliases
get_aws_account_alias
Hello
I'm using terragrunt in a company where the account alias is used to create the name of the tfstate bucket.
Currently, we are running an external
aws
command to list the accounts alias fromterragrunt.hcl
, but this is brittle.To be able to get rid of this brittle code, I need a way to get the list of aliases with a builtin function.
Could you add a new function similar to
get_aws_account_id
to get the list of account aliases ?All the best