Skip to content

Commit

Permalink
Support ECSCredentials
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr committed Oct 20, 2023
1 parent db0629f commit 4ab5459
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/transforms/v2-to-v3/__fixtures__/credentials/ecs.input.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import AWS from "aws-sdk";

const credentials = new AWS.ECSCredentials();
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { fromContainerMetadata } from "@aws-sdk/credential-providers";

const credentials = fromContainerMetadata();
1 change: 1 addition & 0 deletions src/transforms/v2-to-v3/config/AWS_CREDENTIALS_MAP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*/
export const AWS_CREDENTIALS_MAP: Record<string, string> = {
EC2MetadataCredentials: "fromInstanceMetadata",
ECSCredentials: "fromContainerMetadata",
EnvironmentCredentials: "fromEnv",
ChainableTemporaryCredentials: "fromTemporaryCredentials",
};

0 comments on commit 4ab5459

Please sign in to comment.