Skip to content

fix: use static ARNs in attached_policies to resolve for_each unknown value error #3

Merged
merged 3 commits into from
Jul 23, 2026

Commits on Jul 9, 2026

  1. fix(roles): use HTTPS source URLs for aws-iam-role modules

    Replace SSH-style git@ source with git::https:// for all three
    aws-iam-role module references (patch_role, patch_execution_role,
    patch_execproxy_role). HTTPS is required in environments where SSH
    agent forwarding is unavailable or not configured.
    Dave Arnold committed Jul 9, 2026
    Configuration menu
    Copy the full SHA
    84151b8 View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2026

  1. fix: use static ARNs in attached_policies to avoid for_each unknown v…

    …alue error
    
    Terraform cannot use compute-time resource ARNs (aws_iam_policy.*.arn) as
    for_each set keys since they are unknown at plan time. Replace with statically
    constructed ARNs using locals that are always known at plan time:
      format("arn:%v:iam::%v:policy/%v", local.partition, local.account_id, local.<name>)
    
    Fixes 'Invalid for_each argument' errors on all three role modules.
    Dave Arnold committed Jul 23, 2026
    Configuration menu
    Copy the full SHA
    d1c161a View commit details
    Browse the repository at this point in the history
  2. fix: convert module sources from git::https:// to git@ format per Cen…

    …sus standards
    Dave Arnold committed Jul 23, 2026
    Configuration menu
    Copy the full SHA
    3a1030f View commit details
    Browse the repository at this point in the history