aws-samples / aws-samples/lambdaedge-openidconnect-samples
Cloudfront distribution ID not known when creating secret
- Lenguaje dominante
- JavaScript
- Estrellas
- 73
- Forks
- 22
- Merge medio
- 19 h 45 min
- PR fusionados (30 d)
- 1
Descripción
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?
Guía de contribución
Línea de trabajo
Comienza con docs/baseconfiguration.md y la búsqueda en src/js/auth.js alrededor de la línea 241. Rastrea cuándo están disponibles el ID de distribución de CloudFront y el ARN del secreto durante el despliegue del stack, y confirma un flujo de trabajo documentado que evite la dependencia circular.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- aws, javascript
- Área
- cloud, devops
- Tipo de issue
- Error
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 28/100