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{