Skip to content

feat: allow backend role arn to init (AIR-1495)#48

Merged
gberenice merged 1 commit intomainfrom
feature/AIR-1495/optional_backend_role_arn
Apr 29, 2026
Merged

feat: allow backend role arn to init (AIR-1495)#48
gberenice merged 1 commit intomainfrom
feature/AIR-1495/optional_backend_role_arn

Conversation

@glaracuente
Copy link
Copy Markdown
Contributor

@glaracuente glaracuente commented Apr 28, 2026

what

  • Allow a backend role arn to be used during init

why

  • We've had interest in using a backend role for local tf operations, as an alternative to defining an assume_role within backend config or relying on ambient credentials.

references

Summary by CodeRabbit

  • New Features
    • Backend role ARN configuration is now supported through environment variables during initialization, providing greater flexibility for infrastructure deployments. This enhancement streamlines multi-environment setup workflows and eliminates the need for code modifications when managing backend configurations.

Copy link
Copy Markdown
Member

@gberenice gberenice left a comment

Choose a reason for hiding this comment

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

@glaracuente is it intended to be in thedraft state?

@glaracuente glaracuente marked this pull request as ready for review April 29, 2026 13:48
@glaracuente glaracuente requested a review from a team as a code owner April 29, 2026 13:48
@glaracuente glaracuente requested a review from oycyc April 29, 2026 13:48
@glaracuente
Copy link
Copy Markdown
Contributor Author

@glaracuente is it intended to be in thedraft state?
This one wasn't supposed to be, thanks. I've marked as ready.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 29, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: f310ea81-8db4-46e5-9a1d-e1c91f81e823

📥 Commits

Reviewing files that changed from the base of the PR and between 953d140 and f2dde09.

📒 Files selected for processing (1)
  • lib/tf/Taskfile.yml

📝 Walkthrough

Walkthrough

This change modifies the Terraform/OpenTofu init task in lib/tf/Taskfile.yml to support configuring the backend role ARN. It introduces a new task-level variable TF_BACKEND_ROLE_ARN sourced from the environment and updates the init command to conditionally append -backend-config="role_arn=..." when the variable is set, otherwise executing the standard init with only {{.TF_ARGS}}.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

Suggested reviewers

  • gberenice
  • Gowiem
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title directly relates to the main change: introducing support for configuring backend role ARN in the Terraform init task.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/AIR-1495/optional_backend_role_arn

Warning

Review ran into problems

🔥 Problems

Git: Failed to clone repository. Please run the @coderabbitai full review command to re-trigger a full review. If the issue persists, set path_filters to include or exclude specific files.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
Review rate limit: 0/1 reviews remaining, refill in 60 minutes.

Comment @coderabbitai help to get the list of available commands and usage tips.

@gberenice gberenice merged commit 80fb117 into main Apr 29, 2026
2 checks passed
@gberenice gberenice deleted the feature/AIR-1495/optional_backend_role_arn branch April 29, 2026 13:58
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