UNPKG

haven-secrets-core

Version:

Core for Haven, the easy to use centralized secrets manager.

12 lines (9 loc) 213 B
import AWS from "aws-sdk"; const getAccountId = async () => { const sts = new AWS.STS(); return sts .getCallerIdentity() .promise() .then((data) => data.Account); }; export default getAccountId;