-
Notifications
You must be signed in to change notification settings - Fork 62
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
Assume role from profile via instance metadata #383
Assume role from profile via instance metadata #383
Conversation
bors try |
I'll start the CI before the tests are added just to verify the changes doesn't break anything |
tryBuild failed: |
bors try |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bors r+
Canceled. |
bors r+ |
383: Assume role from profile via instance metadata r=mattBrzezinski a=christopher-dG Closes #287 ```ini [default] region = us-east-2 [profile role-to-assume] region = us-east-2 role_arn = arn:aws:iam::account:role/role-to-assume credential_source = Ec2InstanceMetadata ``` ```julia julia> using AWS julia> global_aws_config(; profile="default") AWSConfig(arn:aws:iam::account:instance-profile/role-from-instance-profile (ASIASWQI5NDNRIZLJ3WJ, pAk..., IQo..., 2021-06-18T21:11:05), "us-east-2", "json") julia> global_aws_config(; profile="role-to-assume") AWSConfig(arn:aws:sts::account:assumed-role/role-to-assume/AWS.jl-role-role-to-assume-20210618T152950Z (ASIASWQI5NDNRFEK2HJS, AYR..., IQo..., 2021-06-18T15:44:53), "us-east-2", "json") ``` Needs some tests of course. Co-authored-by: Chris de Graaf <me@cdg.dev> Co-authored-by: mattBrzezinski <matt.brzezinski@invenia.ca>
Build failed: |
bors try (I dunno if I'm allowed to do this, if not can someone run tests?) |
🔒 Permission denied Existing reviewers: click here to make christopher-dG a reviewer |
bors try |
tryBuild failed: |
One more? I think I caught everything now. |
bors try |
tryBuild failed: |
bors try |
tryBuild failed: |
Now I'm a bit confused, the error seems to indicate that the |
I'm not too familiar with apply([patch_1, patch_2]) do |
bors try |
There's also a line 507 somewhere in the output which is the call to |
Here's a full output (it's 100K lines long): out.txt |
Ok so I walked through this with a bunch of prints, and the problem is the The immediate fix would be to mock out the |
Co-authored-by: mattBrzezinski <matt.brzezinski@invenia.ca>
@mattBrzezinski could I get a test run? |
bors try |
tryBuild failed: |
bors try |
success finally! 😄 |
bors try |
@mattBrzezinski one last review? :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! :)
bors r+ |
383: Assume role from profile via instance metadata r=mattBrzezinski a=christopher-dG Closes #287 ```ini [default] region = us-east-2 [profile role-to-assume] region = us-east-2 role_arn = arn:aws:iam::account:role/role-to-assume credential_source = Ec2InstanceMetadata ``` ```julia julia> using AWS julia> global_aws_config(; profile="default") AWSConfig(arn:aws:iam::account:instance-profile/role-from-instance-profile (ASIASWQI5NDNRIZLJ3WJ, pAk..., IQo..., 2021-06-18T21:11:05), "us-east-2", "json") julia> global_aws_config(; profile="role-to-assume") AWSConfig(arn:aws:sts::account:assumed-role/role-to-assume/AWS.jl-role-role-to-assume-20210618T152950Z (ASIASWQI5NDNRFEK2HJS, AYR..., IQo..., 2021-06-18T15:44:53), "us-east-2", "json") ``` Needs some tests of course. Co-authored-by: Chris de Graaf <me@cdg.dev> Co-authored-by: mattBrzezinski <matt.brzezinski@invenia.ca>
Build failed: |
error doesn't look like it's anything I had to do with |
bors r+ |
Closes #287
Needs some tests of course.