digger icon indicating copy to clipboard operation
digger copied to clipboard

Assume role per project not working with terragrunt generation (block)

Open ZIJ opened this issue 10 months ago • 0 comments

I’m trying to generate terragrunt project but also be able to assume different roles for specific projects, but I can’t get the roles to switch. I’m guessing something is wrong with my digger.yml, I’m not sure how how to combine terragrunt_parsing block with aws_role_to_assume. Any help would be appreciated :bow: This is how my digger.yml looks like

generate_projects:
  terragrunt:true
  terragrunt_parsing:
    parallel: true
    createProjectName: true
    createWorkspace: true
    defaultWorkflow: default
  blocks:
    - exclude: "environments/dr/**"
    - exclude: "environments/prd/**"
    - exclude: "environments/stg/**"
    - include: "environments/dev/**"
      aws_role_to_assume:
        state: "arn:aws:iam::45678:role/deployment-role"
        command: "arn:aws:iam::45678:role/deployment-role"
    - include: "environments/shared_services/**"
      aws_role_to_assume:
        state: "arn:aws:iam::12345:role/deployment-role"
        command: "arn:aws:iam::12345:role/deployment-role"

Reported by user I.P.

ZIJ avatar Apr 11 '24 13:04 ZIJ