Skip to content

Harden AWS credential acquisition#65

Merged
sds merged 1 commit intomainfrom
sds/harden-credentials
Nov 11, 2025
Merged

Harden AWS credential acquisition#65
sds merged 1 commit intomainfrom
sds/harden-credentials

Conversation

@sds
Copy link
Copy Markdown
Contributor

@sds sds commented Nov 11, 2025

We non-deterministically (and rarely) see errors like:

Synth command: bun /usr/src/app/cli.js --config .stack/deploy.yml _cdktf-synth
Error:         non-zero exit code 1

Command output on stderr:

    39 |       tryNextLink = options;
    40 |     } else if (options != null && typeof options === "object") {
    41 |       logger = options.logger;
    42 |       tryNextLink = options.tryNextLink ?? true;
    43 |     }
    44 |     super(message);
             ^
    CredentialsProviderError: Could not load credentials from any providers
          at new ProviderError (/usr/src/node_modules/@smithy/property-provider/dist-cjs/index.js:44:5)
          at new CredentialsProviderError (/usr/src/node_modules/@smithy/property-provider/dist-cjs/index.js:67:5)
          at /usr/src/node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js:56:11
          at /usr/src/node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js:60:2
          at /usr/src/node_modules/@smithy/property-provider/dist-cjs/index.js:99:33

Harden our credentials provider implementation to retry so that we are more resilient to strange issues on the AWS side.

We non-deterministically (and rarely) see errors like:

```
Synth command: bun /usr/src/app/cli.js --config .stack/deploy.yml _cdktf-synth
Error:         non-zero exit code 1

Command output on stderr:

    39 |       tryNextLink = options;
    40 |     } else if (options != null && typeof options === "object") {
    41 |       logger = options.logger;
    42 |       tryNextLink = options.tryNextLink ?? true;
    43 |     }
    44 |     super(message);
             ^
    CredentialsProviderError: Could not load credentials from any providers
          at new ProviderError (/usr/src/node_modules/@smithy/property-provider/dist-cjs/index.js:44:5)
          at new CredentialsProviderError (/usr/src/node_modules/@smithy/property-provider/dist-cjs/index.js:67:5)
          at /usr/src/node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js:56:11
          at /usr/src/node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js:60:2
          at /usr/src/node_modules/@smithy/property-provider/dist-cjs/index.js:99:33
```

Harden our credentials provider implementation to retry so that we are
more resilient to strange issues on the AWS side.
@sds sds merged commit 58b3a58 into main Nov 11, 2025
@sds sds deleted the sds/harden-credentials branch November 11, 2025 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant