mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-06-08 19:47:08 +00:00
more debug
This commit is contained in:
parent
b7878cdf5c
commit
7a01614d60
3 changed files with 6 additions and 0 deletions
2
dist/cleanup/index.js
generated
vendored
2
dist/cleanup/index.js
generated
vendored
|
|
@ -46372,7 +46372,9 @@ function exportRegion(region, outputEnvCredentials) {
|
|||
// Obtains account ID from STS Client and sets it as output
|
||||
async function exportAccountId(credentialsClient, maskAccountId) {
|
||||
const client = credentialsClient.stsClient;
|
||||
core.info('trying to get account id');
|
||||
const identity = await client.send(new client_sts_1.GetCallerIdentityCommand({}));
|
||||
core.info('got account id');
|
||||
const accountId = identity.Account;
|
||||
if (!accountId) {
|
||||
throw new Error('Could not get Account ID from STS. Did you set credentials?');
|
||||
|
|
|
|||
2
dist/index.js
generated
vendored
2
dist/index.js
generated
vendored
|
|
@ -366,7 +366,9 @@ function exportRegion(region, outputEnvCredentials) {
|
|||
// Obtains account ID from STS Client and sets it as output
|
||||
async function exportAccountId(credentialsClient, maskAccountId) {
|
||||
const client = credentialsClient.stsClient;
|
||||
core.info('trying to get account id');
|
||||
const identity = await client.send(new client_sts_1.GetCallerIdentityCommand({}));
|
||||
core.info('got account id');
|
||||
const accountId = identity.Account;
|
||||
if (!accountId) {
|
||||
throw new Error('Could not get Account ID from STS. Did you set credentials?');
|
||||
|
|
|
|||
|
|
@ -96,7 +96,9 @@ export function exportRegion(region: string, outputEnvCredentials?: boolean) {
|
|||
// Obtains account ID from STS Client and sets it as output
|
||||
export async function exportAccountId(credentialsClient: CredentialsClient, maskAccountId?: boolean) {
|
||||
const client = credentialsClient.stsClient;
|
||||
core.info('trying to get account id');
|
||||
const identity = await client.send(new GetCallerIdentityCommand({}));
|
||||
core.info('got account id');
|
||||
const accountId = identity.Account;
|
||||
if (!accountId) {
|
||||
throw new Error('Could not get Account ID from STS. Did you set credentials?');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue