[@ciq-dev/ciq-node-utils](../README.md) › [Globals](../globals.md) › ["src/aws/aws-assume-role"](_src_aws_aws_assume_role_.md)

# Module: "src/aws/aws-assume-role"

## Index

### Variables

* [AWS](_src_aws_aws_assume_role_.md#const-aws)
* [iam](_src_aws_aws_assume_role_.md#const-iam)
* [sts](_src_aws_aws_assume_role_.md#const-sts)

### Functions

* [assumeRole](_src_aws_aws_assume_role_.md#const-assumerole)
* [getRoleDetails](_src_aws_aws_assume_role_.md#const-getroledetails)

## Variables

### `Const` AWS

• **AWS**: *any* = require('aws-sdk')

Defined in src/aws/aws-assume-role.ts:1

___

### `Const` iam

• **iam**: *any* = new AWS.IAM()

Defined in src/aws/aws-assume-role.ts:3

___

### `Const` sts

• **sts**: *any* = new AWS.STS()

Defined in src/aws/aws-assume-role.ts:2

## Functions

### `Const` assumeRole

▸ **assumeRole**(): *Promise‹[IAWSCredentials](../interfaces/_interfaces_.iawscredentials.md)›*

Defined in src/aws/aws-assume-role.ts:13

This function is used to build the accesskey and secretkey using sts method by AWS

**`note`** if you passed localConfig mostly for local development then it will return you the localConfig.Credentials

**`async`** 

**`tbt`** 

**Returns:** *Promise‹[IAWSCredentials](../interfaces/_interfaces_.iawscredentials.md)›*

___

### `Const` getRoleDetails

▸ **getRoleDetails**(): *Promise‹any›*

Defined in src/aws/aws-assume-role.ts:41

Function to get roles details using IAM of the ec2Role

**`async`** 

**`tbt`** 

**Returns:** *Promise‹any›*
