st2 run aws.ec2_get_all_tags
…
id: 60ae1858807900e911ac5045
action.ref: aws.ec2_get_all_tags
context.user: st2admin
parameters: None
status: failed
start_timestamp: Wed, 26 May 2021 09:43:52 UTC
end_timestamp: Wed, 26 May 2021 09:43:55 UTC
result:
exit_code: 1
result: None
stderr: "Traceback (most recent call last):
File “/opt/stackstorm/st2/lib/python3.6/site-packages/st2common/runners/utils.py”, line 134, in
get_action_class_instance
action_instance = action_cls(**kwargs)
TypeError: init() got an unexpected keyword argument ‘action_service’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/opt/stackstorm/st2/lib/python3.6/site-packages/python_runner/python_action_wrapper.py”, line 334,
in
obj.run()
File “/opt/stackstorm/st2/lib/python3.6/site-packages/python_runner/python_action_wrapper.py”, line 192,
in run
action = self._get_action_instance()
File “/opt/stackstorm/st2/lib/python3.6/site-packages/python_runner/python_action_wrapper.py”, line 261,
in _get_action_instance
action_service=action_service)
File “/opt/stackstorm/st2/lib/python3.6/site-packages/st2common/runners/utils.py”, line 143, in
get_action_class_instance
action_instance = action_cls(**kwargs)
File “/opt/stackstorm/packs/aws/actions/lib/action.py”, line 67, in init
self.account_id = self.session.client(‘sts’).get_caller_identity().get(‘Account’)
File “/opt/stackstorm/virtualenvs/aws/lib/python3.6/site-packages/botocore/client.py”, line 251, in
_api_call
return self._make_api_call(operation_name, kwargs)
File “/opt/stackstorm/virtualenvs/aws/lib/python3.6/site-packages/botocore/client.py”, line 537, in
_make_api_call
raise ClientError(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (InvalidClientTokenId) when calling the
GetCallerIdentity operation: The security token included in the request is invalid.