aws-samples / aws-samples/lambdaedge-openidconnect-samples
Cloudfront distribution ID not known when creating secret
- Vorherrschende Sprache
- JavaScript
- Sterne
- 73
- Forks
- 22
- Ø Merge
- 19 Std. 45 Min.
- Gemergte PRs (30 T.)
- 1
Beschreibung
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?
Beitragsleitfaden
Rechercherichtung
Beginne mit docs/baseconfiguration.md und der Abfrage in src/js/auth.js um Zeile 241. Verfolge, wann die CloudFront-Distributions-ID und der Secret-ARN während der Stack-Bereitstellung verfügbar werden, und bestätige einen dokumentierten Workflow, der die zirkuläre Abhängigkeit vermeidet.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- aws, javascript
- Bereich
- cloud, devops
- Issue-Typ
- Bug
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 28/100