Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS account name and account alias #20735

Closed
kaiyan-sheng opened this issue Aug 21, 2020 · 3 comments
Closed

AWS account name and account alias #20735

kaiyan-sheng opened this issue Aug 21, 2020 · 3 comments
Assignees
Labels
enhancement Team:Platforms Label for the Integrations - Platforms team

Comments

@kaiyan-sheng
Copy link
Contributor

kaiyan-sheng commented Aug 21, 2020

In my AWS account overview page, I see two different account names: elastic-beats and [email protected].

elastic-beats is actually the account alias:

kaiyansheng@KaiyanMacBookPro:~$ aws iam list-account-aliases
{
    "AccountAliases": [
        "elastic-beats"
    ]
}

[email protected] is the user name part of the ARN:

kaiyansheng@KaiyanMacBookPro:~$ aws sts get-caller-identity
{
    "Account": "12345", 
    "UserId": "xxxxx", 
    "Arn": "arn:aws:iam::12345:user/[email protected]"
}

Currently in aws module, we are collecting account alias name to be the cloud.account.name. Should we create a new field to collect the user name as well?

@kaiyan-sheng kaiyan-sheng self-assigned this Aug 21, 2020
@kaiyan-sheng kaiyan-sheng added enhancement Team:Platforms Label for the Integrations - Platforms team labels Aug 21, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations-platforms (Team:Platforms)

@kaiyan-sheng
Copy link
Contributor Author

kaiyan-sheng commented Aug 21, 2020

Right now, when account alias is not given, cloud.account.name should be filled with account id instead to make sure it is not empty for aws dashboard filter: #20736

cc @aschifman Thanks for finding this issue.

@kaiyan-sheng
Copy link
Contributor Author

I think this issue can be closed for now with #20736.
cloud.account.name will be filled with accountID if account alias doesn't exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Team:Platforms Label for the Integrations - Platforms team
Projects
None yet
Development

No branches or pull requests

2 participants