aws-samples / aws-samples/eb-node-express-sample

`AWS_REGION` vs `REGION` environment variables

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

説明

In `.ebextensions/options.config` it is the `AWS_REGION` environment variable that is set, but in `app.js`, the code refers to the `REGION` environment variable to set `AWS.config.region`. Inspection of running system on launched EB environment shows that indeed `REGION` is actually not set.

Although the code still appears to work, I believe that the intention was to say `AWS.config.region = process.env.AWS_REGION` instead (otherwise `AWS_REGION` is not used anywhere). I'm a bit puzzled as to why the code still works when `AWS.config.region` is set to undefined (especially after one switches to use `nodejs-tutorial` for table name). How does the running process know to use the correct region in this case?

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

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

調査の方向性

Compare the AWS_REGION setting in .ebextensions/options.config with the REGION lookup in app.js, then inspect how the running Elastic Beanstalk process obtains its region. Verify the intended variable is used consistently and confirm the sample still starts and accesses its configured table in the expected region.

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

評価

技術スタック
aws, express, node.js
領域
backend, cloud
issue の種類
バグ
難易度
2/5
見積もり時間
1〜3時間
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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