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

cannot delete more than 10 variables in config #32

Open
sannithibalaji opened this issue May 20, 2020 · 6 comments
Open

cannot delete more than 10 variables in config #32

sannithibalaji opened this issue May 20, 2020 · 6 comments

Comments

@sannithibalaji
Copy link

boto throw's error of max limit reached incase we modify more than 10 variables, code should internally make multiple API calls to overcome this limit.

@shoan
Copy link
Contributor

shoan commented May 20, 2020

Thanks for your report. Please provide more information. Which cloudlift command? What 10 variables?

@sannithibalaji
Copy link
Author

in cloud lift command edit_config, it opens up an editor to update env variables which internally updates it to parameter store.
AWS boto SDK is raising an exception if we update more than 10 env variables in edit_config file.

@shoan
Copy link
Contributor

shoan commented May 21, 2020

I just added 100 parameters to a service with no issues. Can you share the stacktrace and exception?

@sannithibalaji
Copy link
Author

Traceback (most recent call last):
File "/usr/local/bin/cloudlift", line 11, in
load_entry_point('cloudlift==1.4.3', 'console_scripts', 'cloudlift')()
File "/root/rippling/cloudlift/venv/lib/python3.7/site-packages/cloudlift-1.4.3-py3.7.egg/cloudlift/init.py", line 43, in call
File "/root/rippling/cloudlift/venv/lib/python3.7/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/root/rippling/cloudlift/venv/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/root/rippling/cloudlift/venv/lib/python3.7/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/root/rippling/cloudlift/venv/lib/python3.7/site-packages/click/core.py", line 535, in invoke
return callback(args, **kwargs)
File "/root/rippling/cloudlift/venv/lib/python3.7/site-packages/cloudlift-1.4.3-py3.7.egg/cloudlift/init.py", line 37, in wrapper
File "/root/rippling/cloudlift/venv/lib/python3.7/site-packages/cloudlift-1.4.3-py3.7.egg/cloudlift/init.py", line 26, in wrapper
File "/root/rippling/cloudlift/venv/lib/python3.7/site-packages/cloudlift-1.4.3-py3.7.egg/cloudlift/init.py", line 101, in edit_config
File "/root/rippling/cloudlift/venv/lib/python3.7/site-packages/cloudlift-1.4.3-py3.7.egg/cloudlift/deployment/editor.py", line 28, in edit_config
File "/root/rippling/cloudlift/venv/lib/python3.7/site-packages/cloudlift-1.4.3-py3.7.egg/cloudlift/config/parameter_store.py", line 80, in set_config
File "/root/rippling/cloudlift/venv/lib/python3.7/site-packages/botocore/client.py", line 316, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/root/rippling/cloudlift/venv/lib/python3.7/site-packages/botocore/client.py", line 635, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (ValidationException) when calling the DeleteParameters operation: 1 validation error detected: Value '[
******************************************]' at 'names' failed to satisfy constraint: Member must have length less than or equal to 10

@sannithibalaji
Copy link
Author

sorry, for wrong info, i am not able to delete more than 10 at once.

@sannithibalaji sannithibalaji changed the title cannot add or modify more than 10 variables in config cannot delete more than 10 variables in config Jun 10, 2020
@sannithibalaji
Copy link
Author

@shoan

jeechu pushed a commit to jeechu/cloudlift that referenced this issue Mar 15, 2021
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