Skip to content
Discussion options

You must be logged in to vote

The primary way to handle this is by routing with a lookup table and using heuristics with the folder structure to guide you on which entry in the table to get.

For example, in the Reference Architecture, we handle this by checking for all the terragrunt folders that changed (in this line), and then for each one, extracting out the first folder in the path and using that to lookup the AWS Account ID that corresponds to the folder by matching the folder name to the entry in the accounts.json file, and then using the ID to construct the IAM Role ARN to assume and assume that (see this function).

We are not very familiar with the GitLab OIDC integration for assuming a role, but presumably yo…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@chambodn
Comment options

@yorinasub17
Comment options

Answer selected by yorinasub17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants