From d8b0015d7149204f7bc9b46117e834763b5d2fc2 Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Wed, 30 Jan 2019 16:17:31 -0500 Subject: [PATCH] Add role ID to token metadata and internal data --- builtin/credential/aws/path_login.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/builtin/credential/aws/path_login.go b/builtin/credential/aws/path_login.go index 09dca1dab..f08357b9f 100644 --- a/builtin/credential/aws/path_login.go +++ b/builtin/credential/aws/path_login.go @@ -1330,9 +1330,11 @@ func (b *backend) pathLoginUpdateIam(ctx context.Context, req *logical.Request, "inferred_entity_id": inferredEntityID, "inferred_aws_region": roleEntry.InferredAWSRegion, "account_id": entity.AccountNumber, + "role_id": roleEntry.RoleID, }, InternalData: map[string]interface{}{ "role_name": roleName, + "role_id": roleEntry.RoleID, }, DisplayName: entity.FriendlyName, LeaseOptions: logical.LeaseOptions{