Skip to content
This repository was archived by the owner on Nov 6, 2021. It is now read-only.
This repository was archived by the owner on Nov 6, 2021. It is now read-only.

Validate secrets step is throttled by AWS when there are many secrets in SSM #40

@jagregory

Description

@jagregory

If your AWS account has many secrets in SSM, the validate secrets procedure will fail with a Throttled Exception from AWS; this is because the AWS provider is calling ssm.describeParameters for all the parameters in the account, without any filter, and after about 20 page requests it starts being throttled by AWS.

Possible solutions:

  1. When validating secrets, instead of listing all the secrets in the account, go lookup each secret wanted by the app.
  2. Add throttling or retry behaviour to the AWS calls, so if the rate limit is hit the calls will retry.

In the meantime, we've had to disable validation of secrets.

ThrottlingException: Rate exceeded
    at Request.extractError (/Users/jag/dev/trading-stream-consumer/node_modules/aws-sdk/lib/protocol/json.js:48:27)
    at Request.callListeners (/Users/jag/dev/trading-stream-consumer/node_modules/aws-sdk/lib/sequential_executor.js:109:20)
    at Request.emit (/Users/jag/dev/trading-stream-consumer/node_modules/aws-sdk/lib/sequential_executor.js:81:10)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions