Skip to content

Commit dd9f03c

Browse files
committed
Fix AWS get_price action to use assumed role credentials
1 parent 964df4c commit dd9f03c

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

packages/blocks/aws/src/lib/actions/get-price-action.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,10 @@ export const getPriceAction = createAction({
147147
Value: filter.attributeValue,
148148
};
149149
});
150+
const credentials = await getCredentialsFromAuth(context.auth);
150151

151152
const priceList = getPriceListWithCache(
152-
context.auth,
153+
credentials,
153154
service.ServiceCode!,
154155
filters,
155156
PRICING_REGION,

packages/blocks/aws/test/get-price-action.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ describe('getPriceAction', () => {
8080

8181
expect(openopsCommonMock.getPriceListWithCache).toHaveBeenCalledTimes(1);
8282
expect(openopsCommonMock.getPriceListWithCache).toHaveBeenCalledWith(
83-
auth,
83+
{ someCreds: 'some value' },
8484
'some service',
8585
expectedFilters,
8686
'us-east-1',

0 commit comments

Comments
 (0)