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

Allow defining account ID for provider/aws to prevent human error #1063

Closed
radeksimko opened this issue Feb 26, 2015 · 2 comments · Fixed by #1595
Closed

Allow defining account ID for provider/aws to prevent human error #1063

radeksimko opened this issue Feb 26, 2015 · 2 comments · Fixed by #1595

Comments

@radeksimko
Copy link
Member

While calling the API, you obviously don't need to define any account ID (that's automatically paired up with provided access key + secret key), but the traditional use-case is that people have one account for production, another one for development etc.

As it's almost impossible to know what API keys are coming from which account (prod/dev), so it's relatively easy to make a mistake and run something against prod account instead of dev.

There's an API endpoint that terraform could call if there was account_id defined in the provider "aws":

$ aws iam get-user
{
    "User": {
        "UserName": "username", 
        "PasswordLastUsed": "2015-02-26T18:40:08Z", 
        "CreateDate": "2015-02-01T13:40:42Z", 
        "UserId": "AAAABBBCCC1234567890", 
        "Path": "/", 
        "Arn": "arn:aws:iam::1111111111111:user/username"
    }
}

where the account ID is 1111111111111 inside User.Arn.

What do you think of such feature?

@elliotmoore
Copy link

+1 ahem whistles innocently....

@ghost
Copy link

ghost commented May 3, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators May 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants