Skip to content

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

@michaelwittig

Description

@michaelwittig

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions