You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I faced this below error, even though I properly included the AWS access Key.
I managed to get all available ec2 instances. But when I issue the command stop or start the EC2 instance, it gives me this error.
Please help me to resolve this issue ASAP.
Still the same issue when I run the command at the CLI
State - id, that is when showing the result back to screen.
I tried without the dash even. Still the same issue.
**I directly taken this code from Github stackstorm/ AWS page.
As far as I know it says the error is in
"Back
{
"stdout": "",
"stderr": "Traceback (most recent call last):\n File "/opt/stackstorm/st2/lib/python3.6/site-packages/python_runner/python_action_wrapper.py", line 333, in \n obj.run()\n File "/opt/stackstorm/st2/lib/python3.6/site-packages/python_runner/python_action_wrapper.py", line 192, in run\n output = action.run(**self._parameters)\n File "/opt/stackstorm/packs/aws/actions/run.py", line 36, in run\n return self.do_method(module_path, cls, aws_action, **kwargs)\n File "/opt/stackstorm/packs/aws/actions/lib/action.py", line 158, in do_method\n for k, v in kwargs.copy(): #I removed items() and added copy()\nValueError: too many values to unpack (expected 2)\n",
"exit_code": 1,
"result": "None"
}"
I am not sure whether this error occurred due to Python version mismatch.
By the way this is nothing to do with chatops, seems simple coding error or syntax error.
Please help me!
On Oct 22, 2019, at 3:02 AM, VihangaHeshan ***@***.***> wrote:
Hi @punkrokk,
Still the same issue when I run the command at the CLI
State - id, that is when showing the result back to screen.
I tried without the dash even. Still the same issue.
**I directly taken this code from Github stackstorm/ AWS page.
As far as I know it says the error is in
"Back
{
"stdout": "",
"stderr": "Traceback (most recent call last):\n File "/opt/stackstorm/st2/lib/python3.6/site-packages/python_runner/python_action_wrapper.py", line 333, in \n obj.run()\n File "/opt/stackstorm/st2/lib/python3.6/site-packages/python_runner/python_action_wrapper.py", line 192, in run\n output = action.run(**self._parameters)\n File "/opt/stackstorm/packs/aws/actions/run.py", line 36, in run\n return self.do_method(module_path, cls, aws_action, **kwargs)\n File "/opt/stackstorm/packs/aws/actions/lib/action.py", line 158, in do_method\n for k, v in kwargs.copy(): #I removed items() and added copy()\nValueError: too many values to unpack (expected 2)\n",
"exit_code": 1,
"result": "None"
}"
I am not sure whether this error occurred due to Python version mismatch.
By the way this is nothing to do with chatops, seems simple coding error or syntax error.
Please help me!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
Activity
punkrokk commentedon Oct 22, 2019
@VihangaHeshan can you share your command you are running, removing any actual instance Ids or other sensitive info?
VihangaHeshan commentedon Oct 22, 2019
Hi @punkrokk ,

Thank you for your reply.
This my action yaml file.
This is the alias file to start EC2 instance.

This is the command that I execute in the Slack with my Bot.

punkrokk commentedon Oct 22, 2019
@VihangaHeshan A quick peek makes me wonder two things:
st2 run aws.ec2_start_instances InstanceID=i-13221321312...state-id.I am not a chatops expert but may be able to help more after you answer these questions.
VihangaHeshan commentedon Oct 22, 2019
Hi @punkrokk,
**I directly taken this code from Github stackstorm/ AWS page.
As far as I know it says the error is in
"Back
{
"stdout": "",
"stderr": "Traceback (most recent call last):\n File "/opt/stackstorm/st2/lib/python3.6/site-packages/python_runner/python_action_wrapper.py", line 333, in \n obj.run()\n File "/opt/stackstorm/st2/lib/python3.6/site-packages/python_runner/python_action_wrapper.py", line 192, in run\n output = action.run(**self._parameters)\n File "/opt/stackstorm/packs/aws/actions/run.py", line 36, in run\n return self.do_method(module_path, cls, aws_action, **kwargs)\n File "/opt/stackstorm/packs/aws/actions/lib/action.py", line 158, in do_method\n for k, v in kwargs.copy(): #I removed items() and added copy()\nValueError: too many values to unpack (expected 2)\n",
"exit_code": 1,
"result": "None"
}"
I am not sure whether this error occurred due to Python version mismatch.
By the way this is nothing to do with chatops, seems simple coding error or syntax error.
Please help me!
punkrokk commentedon Oct 22, 2019
VihangaHeshan commentedon Oct 22, 2019
Still same :(
