m-namiki / eim

おうちCO-OP在庫管理システム
0 stars 0 forks source link

Ryeの仮想環境下でコンテナの環境変数が取得できない? #15

Open m-namiki opened 8 months ago

m-namiki commented 8 months ago

lambda functionsのpytest実行時に、boto3のdynamodb用クライアント作成のタイミングで以下のエラーメッセージが出力された。

botocore.exceptions.ClientError: An error occurred (UnrecognizedClientException) when calling the ListTables operation: The security token included in the request is invalid.

docker-compose.ymlで定義している環境変数が見えていない? ただ、最初にRegionが見つからないというエラーが出て、その後docker-compose.ymlにAWS_DEFAULT_REGIONを追加したら上記エラーになったので環境変数自体は見えている気がする。