-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat:(cb2-11262): upgrade aws-sdk v2 to v3 (#74)
* feat(cb2-11262): 1 test suite failing * feat(cb2-11262): formatting * feat(cb2-11262): more formatting * feat(cb2-11262): unit tests passing and aws sdk 2 removed * feat(cb2-11262): unit tests passing and aws sdk 2 removed * feat(cb2-11262): fix failing test * feat(cb2-11262): another lint fix * feat(cb2-11262): test working * feat(cb2-11262): refactor changes * feat(cb2-11262): linting fix * feat(cb2-11262): refactor * feat(cb2-11262): remove an any * feat(cb2-11262): space added
- Loading branch information
1 parent
c2e51ae
commit 3a029a9
Showing
10 changed files
with
5,739 additions
and
1,999 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,24 @@ | ||
import { certGenInit } from "./functions/certGenInit"; | ||
import { config as AWSConfig } from "aws-sdk"; | ||
import { | ||
PutSecretValueCommand, | ||
SecretsManagerClient, | ||
} from "@aws-sdk/client-secrets-manager"; | ||
|
||
const isOffline: boolean = | ||
!process.env.BRANCH || process.env.BRANCH === "local"; | ||
|
||
if (isOffline) { | ||
AWSConfig.credentials = { | ||
accessKeyId: "offline", | ||
secretAccessKey: "offline", | ||
}; | ||
const SMC = new SecretsManagerClient({}); | ||
|
||
const command = new PutSecretValueCommand({ | ||
SecretId: "secretid1", | ||
SecretString: JSON.stringify({ | ||
accessKeyId: "offline", | ||
secretAccessKey: "offline", | ||
}), | ||
}); | ||
|
||
SMC.send(command); | ||
} | ||
|
||
export { certGenInit as handler }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.