mirror of
https://github.com/imgproxy/imgproxy.git
synced 2024-11-24 08:12:38 +02:00
Fix loading environment variables from the AWS System Manager Parameter Store when there are more than 10 parameters
This commit is contained in:
parent
6a96d07d5a
commit
7d2b61e63b
@ -5,6 +5,7 @@
|
||||
- Support configuring OpenTelemetry with standard [general](https://opentelemetry.io/docs/languages/sdk-configuration/general/) and [OTLP Exporter](https://opentelemetry.io/docs/languages/sdk-configuration/otlp-exporter/) environment variables.
|
||||
|
||||
### Fix
|
||||
- Fix loading environment variables from the AWS System Manager Parameter Store when there are more than 10 parameters.
|
||||
- (pro) Fixed thumbnail generation for MKV/WebM files containing blocks invalidly marked as keyframes.
|
||||
|
||||
### Deprecated
|
||||
|
@ -86,9 +86,13 @@ func loadAWSSystemManagerParams() error {
|
||||
|
||||
svc := ssm.New(sess, conf)
|
||||
|
||||
var nextToken *string
|
||||
|
||||
for {
|
||||
input := ssm.GetParametersByPathInput{
|
||||
Path: aws.String(paramsPath),
|
||||
WithDecryption: aws.Bool(true),
|
||||
NextToken: nextToken,
|
||||
}
|
||||
|
||||
output, err := svc.GetParametersByPath(&input)
|
||||
@ -117,5 +121,10 @@ func loadAWSSystemManagerParams() error {
|
||||
}
|
||||
}
|
||||
|
||||
if nextToken = output.NextToken; nextToken == nil {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user