Skip to content

Commit 170fcc6

Browse files
authored
Merge branch 'feature/v2-to-v3-migration' into migrate-ssm
2 parents cc671c2 + 17221e1 commit 170fcc6

File tree

15 files changed

+1549
-173
lines changed

15 files changed

+1549
-173
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Bug Fix",
3+
"description": "Amazon Q support web/container environments running Ubuntu/Linux, even when the host machine is Amazon Linux 2."
4+
}

packages/amazonq/src/lsp/auth.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ export class AmazonQLspAuth {
118118
)
119119
if (credentials) {
120120
getLogger().info(
121-
`[SageMaker Debug] IAM credentials structure: accessKeyId=${credentials.accessKeyId ? 'present' : 'missing'}, secretAccessKey=${credentials.secretAccessKey ? 'present' : 'missing'}, sessionToken=${credentials.sessionToken ? 'present' : 'missing'}`
121+
`[SageMaker Debug] IAM credentials structure: accessKeyId=${credentials.accessKeyId ? 'present' : 'missing'}, secretAccessKey=${credentials.secretAccessKey ? 'present' : 'missing'}, sessionToken=${credentials.sessionToken ? 'present' : 'missing'}, expiration=${credentials.expiration} ? 'pr
122+
esent' : 'missing'}`
122123
)
123124
}
124125

@@ -163,6 +164,7 @@ export class AmazonQLspAuth {
163164
accessKeyId: credentials.accessKeyId,
164165
secretAccessKey: credentials.secretAccessKey,
165166
sessionToken: credentials.sessionToken,
167+
expiration: credentials.expiration,
166168
}
167169
const payload = new TextEncoder().encode(JSON.stringify({ data: iamCredentials }))
168170

packages/core/src/auth/credentials/store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,14 @@ export class CredentialsStore {
9595
credentialsId: CredentialsId,
9696
credentialsProvider: CredentialsProvider
9797
): Promise<CachedCredentials> {
98+
getLogger().debug(`store: Fetch new credentials from provider with id: ${asString(credentialsId)}`)
9899
const credentials = {
99100
credentials: await credentialsProvider.getCredentials(),
100101
credentialsHashCode: credentialsProvider.getHashCode(),
101102
endpointUrl: credentialsProvider.getEndpointUrl?.(),
102103
}
103104

104105
this.credentialsCache[asString(credentialsId)] = credentials
105-
106106
return credentials
107107
}
108108
}

packages/core/src/codewhisperer/client/codewhisperer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ export class DefaultCodeWhispererClient {
227227
product: 'CodeWhisperer', // TODO: update this?
228228
clientId: getClientId(globals.globalState),
229229
ideVersion: extensionVersion,
230+
pluginVersion: extensionVersion,
230231
},
231232
profileArn: AuthUtil.instance.regionProfileManager.activeRegionProfile?.arn,
232233
}

0 commit comments

Comments
 (0)