Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
debug autodeploy
Browse files Browse the repository at this point in the history
  • Loading branch information
fwang committed Jul 8, 2024
1 parent 9f63588 commit 5790f93
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/platform/src/components/aws/helpers/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ export const awsFetch = async (
const sourcePath = "aws4fetch";
const { AwsClient } = await import(sourcePath);
const region = opts?.region ?? process.env.SST_AWS_REGION ?? "us-east-1";
if (process.env.SST_RUN_ID) {
console.log({ region });
}

const client = new AwsClient({
...(process.env.SST_AWS_ACCESS_KEY_ID
? {
Expand All @@ -58,6 +62,9 @@ export const awsFetch = async (
s3: `placeholder`,
}[service] + uri;

if (process.env.SST_RUN_ID) {
console.error({ endpoint });
}
return fetch(endpoint, request);

async function fetch(url: string, request: RequestInit, attempts = 0) {
Expand Down

0 comments on commit 5790f93

Please sign in to comment.