Skip to content

fix(ec2): handle runner role output for v7.7.0#329

Merged
edersonbrilhante merged 5 commits into
mainfrom
fix-ec2-runner-role-output
Jun 11, 2026
Merged

fix(ec2): handle runner role output for v7.7.0#329
edersonbrilhante merged 5 commits into
mainfrom
fix-ec2-runner-role-output

Conversation

@edersonbrilhante

Copy link
Copy Markdown
Member

Description

Fixes the EC2 runner deployment output after upgrading github-aws-runners/terraform-aws-github-runner to v7.7.0.

In v7.7.0, the upstream runner IAM role is now returned as a counted resource, so runner.role_runner is a tuple. Forge was still reading runner.role_runner.arn, which caused Terraform/OpenTofu to fail with:

Unsupported attribute: runner.role_runner is tuple with 1 element

This PR updates the EC2 runner ARN output to read runner.role_runner[0].arn, updates the generated Terraform module docs, ignores local .ansible/ cache files, and tightens the Forge subscription trust policy by removing direct EC2/S3 service-principal assume-role access.

Type of Change

  • Bug Fix
  • New Feature
  • Breaking Change
  • Refactor
  • Documentation
  • Other: gitignore and IAM trust policy cleanup

Checklist

  • I have read the contributing guidelines
  • Existing issues have been referenced (where applicable)
  • I have verified this change is not present in other open pull requests
  • Functionality is documented
  • All code style checks pass
  • New code contribution is covered by automated tests
  • All new and existing tests pass

Validation: pre-commit passed, including Terraform/OpenTofu formatting and validation.

@edersonbrilhante edersonbrilhante marked this pull request as ready for review June 11, 2026 11:34
@edersonbrilhante edersonbrilhante enabled auto-merge (squash) June 11, 2026 11:35

@artemburlaka artemburlaka left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@edersonbrilhante edersonbrilhante merged commit e454002 into main Jun 11, 2026
5 checks passed
@edersonbrilhante edersonbrilhante deleted the fix-ec2-runner-role-output branch June 11, 2026 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants