aws-samples / aws-samples/lambdaedge-openidconnect-samples
Cloudfront distribution ID not known when creating secret
- 主要言語
- JavaScript
- スター
- 73
- フォーク
- 22
- 平均マージ
- 19時間 45分
- マージ済み PR(30日)
- 1
説明
One of the initials steps is to create a secret with a placeholder value. However, the secret name is:
"cloudfront/DISTRIBUTION_ID"
with DISTRIBUTION_ID to be substituted with the actual cloudfront distribution ID
doc: https://github.com/aws-samples/lambdaedge-openidconnect-samples/blob/master/docs/baseconfiguration.md
Previously the secret name was to be placed in a sm-key.txt file. Looks like this has changed and the secret is simply
"cloudfront/DISTRIBUTION_ID"
The code has been updated to look for this value. https://github.com/aws-samples/lambdaedge-openidconnect-samples/blob/master/src/js/auth.js#L241
However, the distribution_ID is not know when the secret is created. And, the secret ARN must be provided to deploy the stack (circular dependency).
Am I missing something?
コントリビューションガイド
調査の方向性
docs/baseconfiguration.md と、241 行目付近の src/js/auth.js 内の検索から始めます。スタックのデプロイ中に CloudFront ディストリビューション ID と secret ARN がいつ利用可能になるかを追跡し、循環依存を回避する文書化されたワークフローを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- aws, javascript
- 領域
- cloud, devops
- issue の種類
- バグ
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 28/100