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

change the STS DurationSeconds value #122

Closed
teto opened this issue Aug 23, 2024 · 4 comments
Closed

change the STS DurationSeconds value #122

teto opened this issue Aug 23, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@teto
Copy link
Collaborator

teto commented Aug 23, 2024

Hi,

I am working on a project that need prolonged sessions of testing. Right now I have to reload my novops shell to renew the AWS credentials every hour. I was a bit surprised since I had changed the value in the IAM role to 4 hours. After checks, turns out I had just changed the Maximum duration to 4hours and the default remained to 1h.
According to https://repost.aws/knowledge-center/iam-role-chaining-limit yu can change the session duration in awscli by passing DurationSeconds as option. I could not find how to enable this in novops https://novops.dev/config/aws.html#sts-assume-role ? Would it be possible to add ?

NB: I've just discovered that novops supported s3 buckets !! I've wanted to propose this, it opens up many possibilities. Congrats \o/

@teto teto added the enhancement New feature or request label Aug 23, 2024
@PierreBeucher
Copy link
Owner

Definitely possible, actually was waiting for your issue apparently ;) https://github.com/PierreBeucher/novops/blob/main/src/modules/aws/client.rs#L85

NB: I've just discovered that novops supported s3 buckets !! I've wanted to propose this, it opens up many possibilities. Congrats \o/

Hehe thanks ! I remember you proposed something like this a while back, someone else also did recently so I just went for it.

@PierreBeucher
Copy link
Owner

Coming next release with #123

@PierreBeucher
Copy link
Owner

Released with https://github.com/PierreBeucher/novops/releases/tag/v0.16.0 :) Let me know so we can close this

@teto
Copy link
Collaborator Author

teto commented Aug 27, 2024

awesome. Haven't tested yet. Will reopen if I can't make it work :)

@teto teto closed this as completed Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants