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

Invalid type for parameter DurationSeconds, value: 43200, type: <class 'str'>, valid types: <class 'int'> #66

Closed
michaelwittig opened this issue Sep 17, 2019 · 4 comments

Comments

@michaelwittig
Copy link

michaelwittig commented Sep 17, 2019

Hi!

My ~/.aws/config looks like this:

[profile p1]
region = eu-west-1
role_arn = arn:aws:iam::111111111111:role/XXX
source_profile = p0
mfa_serial = arn:aws:iam::222222222222:mfa/xxx
duration_seconds = 43200
role_duration = 43200

When I run awsume, I get:

$ awsume p1
Enter MFA token:
Parameter validation failed:
Invalid type for parameter DurationSeconds, value: 43200, type: <class 'str'>, valid types: <class 'int'>

If I remove duration_seconds from ~/.aws/config it works.

I use the following version installed via pip on macOS 10.14.6:

$ awsume -v
4.1.2
@mbarneyjr
Copy link
Member

Thanks for bringing this issue to our attention!

I'll push a fix shortly and deploy later today

@michaelwittig
Copy link
Author

Thanks. My understanding of the error: it comes from boto3. But I'm not used to python...

@mbarneyjr
Copy link
Member

Bug should be fixed in release 4.1.3, I'll close for now but feel free to re-open if you're still experiencing this issue

@michaelwittig
Copy link
Author

I can confirm that the new version 4.1.3 works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants