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

AWS Organizations tasks return Unknown Server Error #119

Open
setswei opened this issue Jun 7, 2022 · 0 comments
Open

AWS Organizations tasks return Unknown Server Error #119

setswei opened this issue Jun 7, 2022 · 0 comments

Comments

@setswei
Copy link

setswei commented Jun 7, 2022

Hello,

I am experimenting with stackstrom and the AWS pack so I can provide an easier way to allow users to conduct automation within our environment.

I am trying to develop some workflows around AWS organisations and when it gets the organisation tasks it returns an unknown service error.

{ "output": null, "errors": [ { "type": "error", "message": "Execution failed. See result for details.", "task_id": "task2", "result": { "stdout": "", "stderr": "Traceback (most recent call last):\n File \"/opt/stackstorm/st2/lib/python3.8/site-packages/python_runner/python_action_wrapper.py\", line 395, in <module>\n obj.run()\n File \"/opt/stackstorm/st2/lib/python3.8/site-packages/python_runner/python_action_wrapper.py\", line 214, 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 211, in do_method\n obj = self.get_boto3_session(cls)\n File \"/opt/stackstorm/packs/aws/actions/lib/action.py\", line 134, in get_boto3_session\n return boto3.client(resource, region_name=region, **self.credentials)\n File \"/opt/stackstorm/virtualenvs/aws/lib/python3.8/site-packages/boto3/__init__.py\", line 79, in client\n return _get_default_session().client(*args, **kwargs)\n File \"/opt/stackstorm/virtualenvs/aws/lib/python3.8/site-packages/boto3/session.py\", line 245, in client\n return self._session.create_client(\n File \"/opt/stackstorm/virtualenvs/aws/lib/python3.8/site-packages/botocore/session.py\", line 824, in create_client\n client = client_creator.create_client(\n File \"/opt/stackstorm/virtualenvs/aws/lib/python3.8/site-packages/botocore/client.py\", line 62, in create_client\n service_model = self._load_service_model(service_name, api_version)\n File \"/opt/stackstorm/virtualenvs/aws/lib/python3.8/site-packages/botocore/client.py\", line 91, in _load_service_model\n json_model = self._loader.load_service_model(service_name, 'service-2',\n File \"/opt/stackstorm/virtualenvs/aws/lib/python3.8/site-packages/botocore/loaders.py\", line 132, in _wrapper\n data = func(self, *args, **kwargs)\n File \"/opt/stackstorm/virtualenvs/aws/lib/python3.8/site-packages/botocore/loaders.py\", line 376, in load_service_model\n raise UnknownServiceError(\nbotocore.exceptions.UnknownServiceError: Unknown service: 'organizations'. Valid service names are: acm, apigateway, application-autoscaling, appstream, autoscaling, batch, budgets, cloudformation, cloudfront, cloudhsm, cloudsearch, cloudsearchdomain, cloudtrail, cloudwatch, codebuild, codecommit, codedeploy, codepipeline, cognito-identity, cognito-idp, cognito-sync, config, datapipeline, devicefarm, directconnect, discovery, dms, ds, dynamodb, dynamodbstreams, ec2, ecr, ecs, efs, elasticache, elasticbeanstalk, elastictranscoder, elb, elbv2, emr, es, events, firehose, gamelift, glacier, health, iam, importexport, inspector, iot, iot-data, kinesis, kinesisanalytics, kms, lambda, lightsail, logs, machinelearning, marketplacecommerceanalytics, meteringmarketplace, opsworks, opsworkscm, pinpoint, polly, rds, redshift, rekognition, route53, route53domains, s3, sdb, servicecatalog, ses, shield, sms, snowball, sns, sqs, ssm, stepfunctions, storagegateway, sts, support, swf, waf, waf-regional, workspaces, xray\n", "exit_code": 1, "result": "None" } } ] }

Is something currently out of date within this pack or is there a dependency missing?

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

1 participant