We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0afcf29 commit 479c444Copy full SHA for 479c444
packages/opencode/src/provider/provider.ts
@@ -211,7 +211,12 @@ export namespace Provider {
211
212
const awsWebIdentityTokenFile = Env.get("AWS_WEB_IDENTITY_TOKEN_FILE")
213
214
- if (!profile && !awsAccessKeyId && !awsBearerToken && !awsWebIdentityTokenFile) return { autoload: false }
+ const containerCreds = Boolean(
215
+ process.env.AWS_CONTAINER_CREDENTIALS_RELATIVE_URI || process.env.AWS_CONTAINER_CREDENTIALS_FULL_URI,
216
+ )
217
+
218
+ if (!profile && !awsAccessKeyId && !awsBearerToken && !awsWebIdentityTokenFile && !containerCreds)
219
+ return { autoload: false }
220
221
const providerOptions: AmazonBedrockProviderSettings = {
222
region: defaultRegion,
0 commit comments