aws login --region should persist the region to the profile

オープン 初心者向け
#10,739 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
aws, python
領域
cli

調査の方向性

aws-cliのソースコードでaws loginコマンドの実装を探してください。--regionフラグが処理される場所と、認証後にプロファイル設定が書き込まれる場所を特定してください。フラグが渡され、現在地域が設定されていない場合に、提供された地域を~/.aws/configのプロファイルのregion設定に永続化するようにログインフローを変更してください。この動作を検証するテストを追加または更新してください。

索引モデルが issue の本文から書いたものです。

説明

feature-request login p2
Describe the feature

aws login --region <region> should save that region as the profile's default region in ~/.aws/config (or offer a flag to do so).

Use Case

After aws login --remote --region us-east-1, the resulting profile only contains login_session. aws configure get region returns nothing, so later commands without --region fail or need a separate aws configure set region. New users expect the region they signed in with to stick.

Proposed Solution

When --region is passed to aws login and the profile has no region set, write it. Alternatively, prompt for it, or add --set-default-region.

Other Information

No response

Acknowledgements
  • I may be able to implement this feature request
  • This feature might incur a breaking change
CLI version used

2.37.9

Environment details (OS name and version, etc.)

Ubuntu 24.04 (headless server), x86_64

主要言語
Python
スター
17.4k
フォーク
4.8k
平均マージ
4日 3時間
マージ済み PR(30日)
64

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

aws/aws-cli のほかの issue

aws/aws-cli の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。