Skip to content

Conversation

@themooer1
Copy link
Contributor

@themooer1 themooer1 commented Jan 4, 2018

If an environment variable is added to the config, which is just a number, it is decoded from YAML into an int which causes a botocore.exceptions.ParamValidationError

Here is the relevant part of the stack trace:

botocore/validate.py", line 291, in serialize_to_request
raise ParamValidationError(report=report.generate_report())
botocore.exceptions.ParamValidationError: Parameter validation failed:
Invalid type for parameter Environment.Variables.lowThreshold, value: 5, type: <class 'int'>, valid types: <class 'str'>

When I changed the relevant code, casting get_environment_variable_value(value) to type str, it succeeded in uploading the intended environment variable to AWS without errors.

If an environment variable is added to the config, which is just a number, it is decoded from YAML into an int which causes a botocore.exceptions.ParamValidationError

Here is the relevant part of the stack trace:

botocore/validate.py", line 291, in serialize_to_request
    raise ParamValidationError(report=report.generate_report())
botocore.exceptions.ParamValidationError: Parameter validation failed:
Invalid type for parameter Environment.Variables.lowThreshold, value: 5, type: <class 'int'>, valid types: <class 'str'>
@nficano nficano merged commit 1172ce8 into nficano:master Jan 4, 2018
@themooer1 themooer1 deleted the patch-1 branch January 8, 2018 20:20
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

Successfully merging this pull request may close these issues.

2 participants