apex / apex/up

AWS credentials using credential_process

オープン
#812 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Go
スター
8.8k
フォーク
383
PR マージ指標
30日以内にマージされた PR はありません

説明

## Description

If `~/.aws/credentials` uses [credential_process](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sourcing-external.html), `up` will fail with a "Cannot find credentials" error.

## Steps to Reproduce

`up.json`

```json
{
"profile": "developer"
}
```

`~/.aws/credentials`

```
[developer]
credential_process = /opt/bin/awscreds-custom --username helen
```

Try to deploy:
```sh
❯ up

build: 5 files, 12 MB (545ms)

Error: Cannot find credentials, visit https://apex.sh/docs/up/credentials/ for help.
```

## Workaround

Setting the environment variable `AWS_SDK_LOAD_CONFIG` will instruct the underlying AWS SDK to use [Shared Config Fields](https://docs.aws.amazon.com/sdk-for-go/api/aws/session/#hdr-Sessions_from_Shared_Config) (thus executing the custom `credential_process`).

```sh
AWS_SDK_LOAD_CONFIG=1 up
```

---
I'm not sure there's much you could do in your AWS session implementation beyond force-enable Shared Config support. Opening this as mostly as a reference for anyone who comes across the error with this configuration.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

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

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