0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

AWS SSO でログインして、Spring Cloud AWSで認証情報を使いたい

Posted at

はじめに

AWS CLIでログインして、Spring Cloud AWSを使おうとしたら、使えない。

あれ?ログインしているから認証情報が引き継がれないのかな?
と思い、ちょっと調べる。

一瞬、アクセスキーを発行すれば・。という誘惑に駆られながらも、誘惑を振り切り調べる。

調べたところ

以下のサイトに辿り着く。
https://github.com/awspring/spring-cloud-aws/discussions/1131

ふむふむ、sso、ssooidc を追加しないといけないのかなと。

そもそも、AWS SDKの場合、どうするんだろう?と思い、ちょっと調べたら、やっぱり、sso, ssooidcが必要そう。

で、とりあえず、最新版を追加。してみたら、うまくいった、良かった良かった。

    implementation 'software.amazon.awssdk:sso:2.31.63'
    implementation 'software.amazon.awssdk:ssooidc:2.31.63'

ちなみに、プロファイルは、defalutで作っていたのですが、もし、default以外だったらSpring Cloudの設定ファイルでプロファイルを指定する必要があるかも?

って感じでした。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?