Skip to content

feat: add aws-account-id input for simplified AWS OIDC auth - #31

Closed
raphaeltm wants to merge 5 commits into
mainfrom
feat/aws-account-id-input
Closed

feat: add aws-account-id input for simplified AWS OIDC auth#31
raphaeltm wants to merge 5 commits into
mainfrom
feat/aws-account-id-input

Conversation

@raphaeltm

Copy link
Copy Markdown
Collaborator

When deploying to AWS via the Portal's CloudFormation setup, users can now simply provide their AWS account ID instead of constructing the full role ARN:

with:
  provider: aws
  aws-account-id: "123456789012"

This automatically sets AWS_ROLE_ARN to the Portal's default role name (defang-cd-CIRole). Users who configured AWS manually with a different role name can still use AWS_ROLE_ARN directly in the env section.

When deploying to AWS via the Portal's CloudFormation setup, users can now
simply provide their AWS account ID instead of constructing the full role ARN:

    with:
      provider: aws
      aws-account-id: "123456789012"

This automatically sets AWS_ROLE_ARN to the Portal's default role name
(defang-cd-CIRole). Users who configured AWS manually with a different
role name can still use AWS_ROLE_ARN directly in the env section.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@raphaeltm
raphaeltm requested a review from a team as a code owner January 13, 2026 13:51
@raphaeltm
raphaeltm requested review from Copilot and lionello and removed request for a team January 13, 2026 13:51
Updated Defang GitHub Action version from 1.3.0 to 1.3.1 in deployment steps.

Copilot AI 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.

Pull request overview

This pull request adds a simplified way for users to authenticate with AWS via OIDC by providing just their AWS account ID instead of constructing the full IAM role ARN. When users provide the aws-account-id input, the action automatically constructs the AWS_ROLE_ARN environment variable using the Portal's default role name (defang-cd-CIRole). Users who have manually configured AWS with custom role names can still use the AWS_ROLE_ARN environment variable directly.

Changes:

  • Added aws-account-id input parameter to simplify AWS OIDC authentication
  • Added logic to automatically construct AWS_ROLE_ARN from the account ID
  • Updated documentation with AWS deployment examples and instructions

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
action.yaml Added new aws-account-id input parameter and shell script logic to construct AWS_ROLE_ARN environment variable
README.md Added comprehensive AWS deployment documentation section with examples, updated version references to v1.3.0, and enhanced full example to include AWS deployment

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread action.yaml Outdated
Comment thread action.yaml Outdated
Comment thread README.md
raphaeltm and others added 3 commits January 13, 2026 08:55
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ang-github-action into feat/aws-account-id-input
@lionello

Copy link
Copy Markdown
Member

Superseded in favor of Portal default stack

@lionello lionello closed this Jan 28, 2026
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.

3 participants