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

Support AssumeRole #170

Open
rkey-dev opened this issue Mar 22, 2021 · 2 comments
Open

Support AssumeRole #170

rkey-dev opened this issue Mar 22, 2021 · 2 comments
Labels
Feature roadmap feature Provider: AWS Issues related to the AWS Provider

Comments

@rkey-dev
Copy link

Abstract

Authentication should be allowed through the AssumRole API

Proposal

No longer require access key and secret to be set.

One example is to have AWS Config and Credentials files setup like this:
Credentials:

[tf-state]
aws_access_key_id = xxx
aws_secret_access_key = xxx

Config:
[profile tf-state]
region = us-east-1
output = json

[profile tf-something-test]
role_arn = arn:aws:iam::123456789012:role/orgrole-terraform-cas
source_profile = tf-state
region = us-east-1

[profile tf-something-dev]
role_arn = arn:aws:iam::123456789654:role/orgrole-terraform-cas
source_profile = tf-state
region = us-east-1

Implementation

Allow setting of --aws-shared-config-file and remove the requirement for "access-key" to be set.

@rkey-dev rkey-dev added the Feature roadmap feature label Mar 22, 2021
@tormath1 tormath1 added the Provider: AWS Issues related to the AWS Provider label Apr 2, 2021
@jnancel
Copy link

jnancel commented Feb 14, 2022

No updates ?

@daveofthedogs
Copy link

It seems that this has been implemented; however, when I use --profile, it doesn't seem to be assuming that role. We log into a primary account and sts:assumerole to access our secondary accounts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature roadmap feature Provider: AWS Issues related to the AWS Provider
Projects
None yet
Development

No branches or pull requests

4 participants