aws / aws-cli

Universal Command Line Interface for Amazon Web Services
Other
15.57k stars 4.13k forks source link

aws codebuild - strange behaviour, off and on #3269

Closed JohnVonNeumann closed 6 years ago

JohnVonNeumann commented 6 years ago

Alright so this is a weird one and if someone can reproduce I'll actually be surprised. So I couldn't run:

aws codebuild list-curated-environment-images

humanbeing@earth$ aws codebuild list-curated-environment-images
usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:

  aws help
  aws <command> help
  aws <command> <subcommand> help
aws: error: argument command: Invalid choice, valid choices are:

acm                                      | apigateway                              
application-autoscaling                  | autoscaling                             
budgets                                  | cloudformation                          
cloudfront                               | cloudhsm                                
cloudsearch                              | cloudsearchdomain                       
cloudtrail                               | cloudwatch                              
codecommit                               | codepipeline                            
cognito-identity                         | cognito-idp                             
cognito-sync                             | datapipeline                            
devicefarm                               | directconnect                           
discovery                                | dms                                     
ds                                       | dynamodb                                
dynamodbstreams                          | ec2                                     
ecr                                      | ecs                                     
efs                                      | elasticache                             
elasticbeanstalk                         | elastictranscoder                       
elb                                      | elbv2                                   
emr                                      | es                                      
events                                   | firehose                                
gamelift                                 | glacier                                 
iam                                      | importexport                            
inspector                                | iot                                     
iot-data                                 | kinesis                                 
kinesisanalytics                         | kms                                     
lambda                                   | logs                                    
machinelearning                          | marketplacecommerceanalytics            
meteringmarketplace                      | opsworks                                
rds                                      | redshift                                
route53                                  | route53domains                          
sdb                                      | servicecatalog                          
ses                                      | sms                                     
snowball                                 | sns                                     
sqs                                      | ssm                                     
storagegateway                           | sts                                     
support                                  | swf                                     
waf                                      | workspaces                              
s3api                                    | s3                                      
configure                                | deploy                                  
configservice                            | help    

Figured my aws-cli version was out of date, so I updated to the oldest version that I could find had a hint of codebuild support.

sudo pip install --upgrade awscli==1.11.24

I still got the issues regarding the not finding it, please pick one that exists. So I upgraded to the most recent release.

sudo pip install --upgrade awscli==1.15.4

Still, no love. I restarted my host.

I then saw that someone recommended that I run with --debug to get an output to post here, so I did that and...

(infrastructure-d0mExhEw) lw@RobertOppenheimer:infrastructure$ aws codebuild list-curated-environment-images --debug
2018-04-17 16:12:35,893 - MainThread - awscli.clidriver - DEBUG - CLI version: aws-cli/1.15.4 Python/2.7.12 Linux/4.13.0-38-generic botocore/1.10.4
2018-04-17 16:12:35,893 - MainThread - awscli.clidriver - DEBUG - Arguments entered to CLI: ['codebuild', 'list-curated-environment-images', '--debug']
2018-04-17 16:12:35,893 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function add_scalar_parsers at 0x7f421c025140>
2018-04-17 16:12:35,893 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2018-04-17 16:12:35,893 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function inject_assume_role_provider_cache at 0x7f4219440488>
2018-04-17 16:12:35,893 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2018-04-17 16:12:35,893 - MainThread - botocore.session - DEBUG - Loading variable credentials_file from defaults.
2018-04-17 16:12:35,893 - MainThread - botocore.session - DEBUG - Loading variable config_file from defaults.
2018-04-17 16:12:35,893 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2018-04-17 16:12:35,893 - MainThread - botocore.session - DEBUG - Loading variable metadata_service_timeout from defaults.
2018-04-17 16:12:35,893 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2018-04-17 16:12:35,893 - MainThread - botocore.session - DEBUG - Loading variable metadata_service_num_attempts from defaults.
2018-04-17 16:12:35,894 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2018-04-17 16:12:35,894 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function attach_history_handler at 0x7f4218bf0e60>
2018-04-17 16:12:35,894 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2018-04-17 16:12:35,894 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2018-04-17 16:12:35,894 - MainThread - botocore.session - DEBUG - Loading variable api_versions from defaults.
2018-04-17 16:12:35,894 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/lib/python2.7/dist-packages/botocore/data/codebuild/2016-10-06/service-2.json
2018-04-17 16:12:35,899 - MainThread - botocore.hooks - DEBUG - Event service-data-loaded.codebuild: calling handler <function register_retries_for_service at 0x7f4219d77050>
2018-04-17 16:12:35,900 - MainThread - botocore.handlers - DEBUG - Registering retry handlers for service: codebuild
2018-04-17 16:12:35,900 - MainThread - botocore.hooks - DEBUG - Event building-command-table.codebuild: calling handler <function add_waiters at 0x7f421c02d578>
2018-04-17 16:12:35,903 - MainThread - awscli.clidriver - DEBUG - OrderedDict()
2018-04-17 16:12:35,903 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.codebuild.list-curated-environment-images: calling handler <function add_streaming_output_arg at 0x7f421c025758>
2018-04-17 16:12:35,903 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.codebuild.list-curated-environment-images: calling handler <function add_cli_input_json at 0x7f4219447140>
2018-04-17 16:12:35,903 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.codebuild.list-curated-environment-images: calling handler <function unify_paging_params at 0x7f4218b73c08>
2018-04-17 16:12:35,907 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/lib/python2.7/dist-packages/botocore/data/codebuild/2016-10-06/paginators-1.json
2018-04-17 16:12:35,907 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.codebuild.list-curated-environment-images: calling handler <function add_generate_skeleton at 0x7f4218b68050>
2018-04-17 16:12:35,907 - MainThread - botocore.hooks - DEBUG - Event before-building-argument-table-parser.codebuild.list-curated-environment-images: calling handler <bound method CliInputJSONArgument.override_required_args of <awscli.customizations.cliinputjson.CliInputJSONArgument object at 0x7f42186a2750>>
2018-04-17 16:12:35,907 - MainThread - botocore.hooks - DEBUG - Event before-building-argument-table-parser.codebuild.list-curated-environment-images: calling handler <bound method GenerateCliSkeletonArgument.override_required_args of <awscli.customizations.generatecliskeleton.GenerateCliSkeletonArgument object at 0x7f42186a2910>>
2018-04-17 16:12:35,908 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.codebuild.list-curated-environment-images.cli-input-json: calling handler <function uri_param at 0x7f42194dfde8>
2018-04-17 16:12:35,908 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.codebuild.list-curated-environment-images.generate-cli-skeleton: calling handler <function uri_param at 0x7f42194dfde8>
2018-04-17 16:12:35,908 - MainThread - botocore.hooks - DEBUG - Event calling-command.codebuild.list-curated-environment-images: calling handler <bound method CliInputJSONArgument.add_to_call_parameters of <awscli.customizations.cliinputjson.CliInputJSONArgument object at 0x7f42186a2750>>
2018-04-17 16:12:35,908 - MainThread - botocore.hooks - DEBUG - Event calling-command.codebuild.list-curated-environment-images: calling handler <bound method GenerateCliSkeletonArgument.generate_json_skeleton of <awscli.customizations.generatecliskeleton.GenerateCliSkeletonArgument object at 0x7f42186a2910>>
2018-04-17 16:12:35,909 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2018-04-17 16:12:35,909 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2018-04-17 16:12:35,909 - MainThread - botocore.session - DEBUG - Loading variable region from config file with value 'ap-southeast-2'.
2018-04-17 16:12:35,909 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2018-04-17 16:12:35,909 - MainThread - botocore.session - DEBUG - Loading variable ca_bundle from defaults.
2018-04-17 16:12:35,909 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2018-04-17 16:12:35,909 - MainThread - botocore.session - DEBUG - Loading variable api_versions from defaults.
2018-04-17 16:12:35,909 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: env
2018-04-17 16:12:35,909 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: assume-role
2018-04-17 16:12:35,909 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: shared-credentials-file
2018-04-17 16:12:35,909 - MainThread - botocore.credentials - INFO - Found credentials in shared credentials file: ~/.aws/credentials
2018-04-17 16:12:35,910 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/lib/python2.7/dist-packages/botocore/data/endpoints.json
2018-04-17 16:12:35,923 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2018-04-17 16:12:35,923 - MainThread - botocore.hooks - DEBUG - Event choose-service-name: calling handler <function handle_service_name_alias at 0x7f4219d747d0>
2018-04-17 16:12:35,924 - MainThread - botocore.hooks - DEBUG - Event creating-client-class.codebuild: calling handler <function add_generate_presigned_url at 0x7f4219dabe60>
2018-04-17 16:12:35,925 - MainThread - botocore.args - DEBUG - The s3 config key is not a dictionary type, ignoring its value of: None
2018-04-17 16:12:35,928 - MainThread - botocore.endpoint - DEBUG - Setting codebuild timeout as (60, 60)
2018-04-17 16:12:35,929 - MainThread - botocore.client - DEBUG - Registering retry handlers for service: codebuild
2018-04-17 16:12:35,929 - MainThread - botocore.hooks - DEBUG - Event before-parameter-build.codebuild.ListCuratedEnvironmentImages: calling handler <function generate_idempotent_uuid at 0x7f4219d74a28>
2018-04-17 16:12:35,929 - MainThread - botocore.endpoint - DEBUG - Making request for OperationModel(name=ListCuratedEnvironmentImages) (verify_ssl=True) with params: {'body': '{}', 'url': u'https://codebuild.ap-southeast-2.amazonaws.com/', 'headers': {'User-Agent': 'aws-cli/1.15.4 Python/2.7.12 Linux/4.13.0-38-generic botocore/1.10.4', 'Content-Type': u'application/x-amz-json-1.1', 'X-Amz-Target': u'CodeBuild_20161006.ListCuratedEnvironmentImages'}, 'context': {'auth_type': None, 'client_region': 'ap-southeast-2', 'has_streaming_input': False, 'client_config': <botocore.config.Config object at 0x7f42184c5350>}, 'query_string': '', 'url_path': '/', 'method': u'POST'}
2018-04-17 16:12:35,930 - MainThread - botocore.hooks - DEBUG - Event request-created.codebuild.ListCuratedEnvironmentImages: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x7f42184c5310>>
2018-04-17 16:12:35,930 - MainThread - botocore.hooks - DEBUG - Event choose-signer.codebuild.ListCuratedEnvironmentImages: calling handler <function set_operation_specific_signer at 0x7f4219d74938>
2018-04-17 16:12:35,930 - MainThread - botocore.auth - DEBUG - Calculating signature using v4 auth.
2018-04-17 16:12:35,930 - MainThread - botocore.auth - DEBUG - CanonicalRequest:
POST
/

content-type:application/x-amz-json-1.1
host:codebuild.ap-southeast-2.amazonaws.com
x-amz-date:20180417T061235Z
x-amz-target:CodeBuild_20161006.ListCuratedEnvironmentImages

content-type;host;x-amz-date;x-amz-target
44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a
2018-04-17 16:12:35,930 - MainThread - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20180417T061235Z
20180417/ap-southeast-2/codebuild/aws4_request
2fc901d6051054bec23fb4c18755a5564cff023defb2fc8776dd383c0b98eed2
2018-04-17 16:12:35,930 - MainThread - botocore.auth - DEBUG - Signature:
f4e18f2549e2f935ad556db566ca55cccbeb0606b264e7508058ae8de89b4220
2018-04-17 16:12:35,932 - MainThread - botocore.endpoint - DEBUG - Sending http request: <PreparedRequest [POST]>
2018-04-17 16:12:35,933 - MainThread - botocore.vendored.requests.packages.urllib3.connectionpool - INFO - Starting new HTTPS connection (1): codebuild.ap-southeast-2.amazonaws.com
2018-04-17 16:12:36,290 - MainThread - botocore.vendored.requests.packages.urllib3.connectionpool - DEBUG - "POST / HTTP/1.1" 200 11603
2018-04-17 16:12:36,292 - MainThread - botocore.parsers - DEBUG - Response headers: {'x-amzn-requestid': '52d70403-4206-11e8-94c1-11a6557d351f', 'date': 'Tue, 17 Apr 2018 06:12:36 GMT', 'content-length': '11603', 'content-type': 'application/x-amz-json-1.1'}
2018-04-17 16:12:36,292 - MainThread - botocore.parsers - DEBUG - Response body:
{"platforms":[{"languages":[{"images":[{"description":"AWS ElasticBeanstalk - Java 7 Running on Amazon Linux 64bit v2.1.3","name":"aws/codebuild/eb-java-7-amazonlinux-64:2.1.3","versions":["aws/codebuild/eb-java-7-amazonlinux-64:2.1.3-1.0.0"]},{"description":"AWS ElasticBeanstalk - Java 8 Running on Amazon Linux 64bit v2.1.3","name":"aws/codebuild/eb-java-8-amazonlinux-64:2.1.3","versions":["aws/codebuild/eb-java-8-amazonlinux-64:2.1.3-1.0.0"]},{"description":"AWS ElasticBeanstalk - Java 7 Running on Amazon Linux 64bit v2.1.6","name":"aws/codebuild/eb-java-7-amazonlinux-64:2.1.6","versions":["aws/codebuild/eb-java-7-amazonlinux-64:2.1.6-1.0.0"]},{"description":"AWS ElasticBeanstalk - Java 8 Running on Amazon Linux 64bit v2.1.6","name":"aws/codebuild/eb-java-8-amazonlinux-64:2.1.6","versions":["aws/codebuild/eb-java-8-amazonlinux-64:2.1.6-1.0.0"]},{"description":"AWS ElasticBeanstalk - Java 7 Running on Amazon Linux 64bit v2.4.3","name":"aws/codebuild/eb-java-7-amazonlinux-64:2.4.3","versions":["aws/codebuild/eb-java-7-amazonlinux-64:2.4.3-1.0.0"]},{"description":"AWS ElasticBeanstalk - Java 8 Running on Amazon Linux 64bit v2.4.3","name":"aws/codebuild/eb-java-8-amazonlinux-64:2.4.3","versions":["aws/codebuild/eb-java-8-amazonlinux-64:2.4.3-1.0.0"]}],"language":"JAVA"},{"images":[{"description":"AWS ElasticBeanstalk - Ruby 1.9 Running on Amazon Linux 64bit v2.1.3","name":"aws/codebuild/eb-ruby-1.9-amazonlinux-64:2.1.3","versions":["aws/codebuild/eb-ruby-1.9-amazonlinux-64:2.1.3-1.0.0"]},{"description":"AWS ElasticBeanstalk - Ruby 2.0 Running on Amazon Linux 64bit v2.1.3","name":"aws/codebuild/eb-ruby-2.0-amazonlinux-64:2.1.3","versions":["aws/codebuild/eb-ruby-2.0-amazonlinux-64:2.1.3-1.0.0"]},{"description":"AWS ElasticBeanstalk - Ruby 2.1 Running on Amazon Linux 64bit v2.1.3","name":"aws/codebuild/eb-ruby-2.1-amazonlinux-64:2.1.3","versions":["aws/codebuild/eb-ruby-2.1-amazonlinux-64:2.1.3-1.0.0"]},{"description":"AWS ElasticBeanstalk - Ruby 2.2 Running on Amazon Linux 64bit v2.1.3","name":"aws/codebuild/eb-ruby-2.2-amazonlinux-64:2.1.3","versions":["aws/codebuild/eb-ruby-2.2-amazonlinux-64:2.1.3-1.0.0"]},{"description":"AWS ElasticBeanstalk - Ruby 2.3 Running on Amazon Linux 64bit v2.1.3","name":"aws/codebuild/eb-ruby-2.3-amazonlinux-64:2.1.3","versions":["aws/codebuild/eb-ruby-2.3-amazonlinux-64:2.1.3-1.0.0"]},{"description":"AWS ElasticBeanstalk - Ruby 1.9 Running on Amazon Linux 64bit v2.1.6","name":"aws/codebuild/eb-ruby-1.9-amazonlinux-64:2.1.6","versions":["aws/codebuild/eb-ruby-1.9-amazonlinux-64:2.1.6-1.0.0"]},{"description":"AWS ElasticBeanstalk - Ruby 2.0 Running on Amazon Linux 64bit v2.1.6","name":"aws/codebuild/eb-ruby-2.0-amazonlinux-64:2.1.6","versions":["aws/codebuild/eb-ruby-2.0-amazonlinux-64:2.1.6-1.0.0"]},{"description":"AWS ElasticBeanstalk - Ruby 2.1 Running on Amazon Linux 64bit v2.1.6","name":"aws/codebuild/eb-ruby-2.1-amazonlinux-64:2.1.6","versions":["aws/codebuild/eb-ruby-2.1-amazonlinux-64:2.1.6-1.0.0"]},{"description":"AWS ElasticBeanstalk - Ruby 2.2 Running on Amazon Linux 64bit v2.1.6","name":"aws/codebuild/eb-ruby-2.2-amazonlinux-64:2.1.6","versions":["aws/codebuild/eb-ruby-2.2-amazonlinux-64:2.1.6-1.0.0"]},{"description":"AWS ElasticBeanstalk - Ruby 2.3 Running on Amazon Linux 64bit v2.1.6","name":"aws/codebuild/eb-ruby-2.3-amazonlinux-64:2.1.6","versions":["aws/codebuild/eb-ruby-2.3-amazonlinux-64:2.1.6-1.0.0"]},{"description":"AWS ElasticBeanstalk - Ruby 1.9 Running on Amazon Linux 64bit v2.3.2","name":"aws/codebuild/eb-ruby-1.9-amazonlinux-64:2.3.2","versions":["aws/codebuild/eb-ruby-1.9-amazonlinux-64:2.3.2-1.0.0"]},{"description":"AWS ElasticBeanstalk - Ruby 2.0 Running on Amazon Linux 64bit v2.3.2","name":"aws/codebuild/eb-ruby-2.0-amazonlinux-64:2.3.2","versions":["aws/codebuild/eb-ruby-2.0-amazonlinux-64:2.3.2-1.0.0"]},{"description":"AWS ElasticBeanstalk - Ruby 2.1 Running on Amazon Linux 64bit v2.3.2","name":"aws/codebuild/eb-ruby-2.1-amazonlinux-64:2.3.2","versions":["aws/codebuild/eb-ruby-2.1-amazonlinux-64:2.3.2-1.0.0"]},{"description":"AWS ElasticBeanstalk - Ruby 2.2 Running on Amazon Linux 64bit v2.3.2","name":"aws/codebuild/eb-ruby-2.2-amazonlinux-64:2.3.2","versions":["aws/codebuild/eb-ruby-2.2-amazonlinux-64:2.3.2-1.0.0"]},{"description":"AWS ElasticBeanstalk - Ruby 2.3 Running on Amazon Linux 64bit v2.3.2","name":"aws/codebuild/eb-ruby-2.3-amazonlinux-64:2.3.2","versions":["aws/codebuild/eb-ruby-2.3-amazonlinux-64:2.3.2-1.0.0"]}],"language":"RUBY"},{"images":[{"description":"AWS ElasticBeanstalk - Go 1.5 Running on Amazon Linux 64bit v2.1.3","name":"aws/codebuild/eb-go-1.5-amazonlinux-64:2.1.3","versions":["aws/codebuild/eb-go-1.5-amazonlinux-64:2.1.3-1.0.0"]},{"description":"AWS ElasticBeanstalk - Go 1.5 Running on Amazon Linux 64bit v2.1.6","name":"aws/codebuild/eb-go-1.5-amazonlinux-64:2.1.6","versions":["aws/codebuild/eb-go-1.5-amazonlinux-64:2.1.6-1.0.0"]},{"description":"AWS ElasticBeanstalk - Go 1.6 Running on Amazon Linux 64bit v2.3.2","name":"aws/codebuild/eb-go-1.6-amazonlinux-64:2.3.2","versions":["aws/codebuild/eb-go-1.6-amazonlinux-64:2.3.2-1.0.0"]}],"language":"GOLANG"},{"images":[{"description":"AWS ElasticBeanstalk - Node.js 4.4.6 Running on Amazon Linux 64bit v2.1.3","name":"aws/codebuild/eb-nodejs-4.4.6-amazonlinux-64:2.1.3","versions":["aws/codebuild/eb-nodejs-4.4.6-amazonlinux-64:2.1.3-1.0.0"]},{"description":"AWS ElasticBeanstalk - Node.js 6.10.0 Running on Amazon Linux 64bit v4.0.0","name":"aws/codebuild/eb-nodejs-6.10.0-amazonlinux-64:4.0.0","versions":["aws/codebuild/eb-nodejs-6.10.0-amazonlinux-64:4.0.0-1.0.0"]}],"language":"NODE_JS"},{"images":[{"description":"AWS ElasticBeanstalk - Python 2.6 Running on Amazon Linux 64bit v2.1.3","name":"aws/codebuild/eb-python-2.6-amazonlinux-64:2.1.3","versions":["aws/codebuild/eb-python-2.6-amazonlinux-64:2.1.3-1.0.0"]},{"description":"AWS ElasticBeanstalk - Python 2.7 Running on Amazon Linux 64bit v2.1.3","name":"aws/codebuild/eb-python-2.7-amazonlinux-64:2.1.3","versions":["aws/codebuild/eb-python-2.7-amazonlinux-64:2.1.3-1.0.0"]},{"description":"AWS ElasticBeanstalk - Python 3.4 Running on Amazon Linux 64bit v2.1.3","name":"aws/codebuild/eb-python-3.4-amazonlinux-64:2.1.3","versions":["aws/codebuild/eb-python-3.4-amazonlinux-64:2.1.3-1.0.0"]},{"description":"AWS ElasticBeanstalk - Python 2.6 Running on Amazon Linux 64bit v2.1.6","name":"aws/codebuild/eb-python-2.6-amazonlinux-64:2.1.6","versions":["aws/codebuild/eb-python-2.6-amazonlinux-64:2.1.6-1.0.0"]},{"description":"AWS ElasticBeanstalk - Python 2.7 Running on Amazon Linux 64bit v2.1.6","name":"aws/codebuild/eb-python-2.7-amazonlinux-64:2.1.6","versions":["aws/codebuild/eb-python-2.7-amazonlinux-64:2.1.6-1.0.0"]},{"description":"AWS ElasticBeanstalk - Python 3.4 Running on Amazon Linux 64bit v2.1.6","name":"aws/codebuild/eb-python-3.4-amazonlinux-64:2.1.6","versions":["aws/codebuild/eb-python-3.4-amazonlinux-64:2.1.6-1.0.0"]},{"description":"AWS ElasticBeanstalk - Python 2.6 Running on Amazon Linux 64bit v2.3.2","name":"aws/codebuild/eb-python-2.6-amazonlinux-64:2.3.2","versions":["aws/codebuild/eb-python-2.6-amazonlinux-64:2.3.2-1.0.0"]},{"description":"AWS ElasticBeanstalk - Python 2.7 Running on Amazon Linux 64bit v2.3.2","name":"aws/codebuild/eb-python-2.7-amazonlinux-64:2.3.2","versions":["aws/codebuild/eb-python-2.7-amazonlinux-64:2.3.2-1.0.0"]},{"description":"AWS ElasticBeanstalk - Python 3.4 Running on Amazon Linux 64bit v2.3.2","name":"aws/codebuild/eb-python-3.4-amazonlinux-64:2.3.2","versions":["aws/codebuild/eb-python-3.4-amazonlinux-64:2.3.2-1.0.0"]}],"language":"PYTHON"}],"platform":"AMAZON_LINUX"},{"languages":[{"images":[{"description":"AWS CodeBuild - Ubuntu Base 14.04","name":"aws/codebuild/ubuntu-base:14.04","versions":["aws/codebuild/ubuntu-base:14.04-1.0.0","aws/codebuild/ubuntu-base:14.04-1.1.0","aws/codebuild/ubuntu-base:14.04-1.2.0"]}],"language":"BASE"},{"images":[{"description":"AWS CodeBuild - Android 24.4.1 with java 8","name":"aws/codebuild/android-java-8:24.4.1","versions":["aws/codebuild/android-java-8:24.4.1-1.0.0","aws/codebuild/android-java-8:24.4.1-1.1.0","aws/codebuild/android-java-8:24.4.1-1.2.0"]}],"language":"ANDROID"},{"images":[{"description":"AWS CodeBuild - Java 8","name":"aws/codebuild/java:openjdk-8","versions":["aws/codebuild/java:openjdk-8-1.0.0","aws/codebuild/java:openjdk-8-1.1.0","aws/codebuild/java:openjdk-8-1.2.0"]},{"description":"AWS CodeBuild - Java 9","name":"aws/codebuild/java:openjdk-9","versions":["aws/codebuild/java:openjdk-9-1.2.0"]}],"language":"JAVA"},{"images":[{"description":"AWS CodeBuild - Python 2.7.12","name":"aws/codebuild/python:2.7.12","versions":["aws/codebuild/python:2.7.12-1.0.0","aws/codebuild/python:2.7.12-1.1.0","aws/codebuild/python:2.7.12-1.2.0"]},{"description":"AWS CodeBuild - Python 3.3.6","name":"aws/codebuild/python:3.3.6","versions":["aws/codebuild/python:3.3.6-1.0.0","aws/codebuild/python:3.3.6-1.1.0","aws/codebuild/python:3.3.6-1.2.0"]},{"description":"AWS CodeBuild - Python 3.4.5","name":"aws/codebuild/python:3.4.5","versions":["aws/codebuild/python:3.4.5-1.0.0","aws/codebuild/python:3.4.5-1.1.0","aws/codebuild/python:3.4.5-1.2.0"]},{"description":"AWS CodeBuild - Python 3.5.2","name":"aws/codebuild/python:3.5.2","versions":["aws/codebuild/python:3.5.2-1.0.0","aws/codebuild/python:3.5.2-1.1.0","aws/codebuild/python:3.5.2-1.2.0"]}],"language":"PYTHON"},{"images":[{"description":"AWS CodeBuild - PHP 5.6","name":"aws/codebuild/php:5.6","versions":["aws/codebuild/php:5.6-1.2.0"]},{"description":"AWS CodeBuild - PHP 7.0","name":"aws/codebuild/php:7.0","versions":["aws/codebuild/php:7.0-1.2.0"]}],"language":"PHP"},{"images":[{"description":"AWS CodeBuild - Ruby 2.2.5","name":"aws/codebuild/ruby:2.2.5","versions":["aws/codebuild/ruby:2.2.5-1.0.0","aws/codebuild/ruby:2.2.5-1.1.0","aws/codebuild/ruby:2.2.5-1.2.0"]},{"description":"AWS CodeBuild - Ruby 2.3.1","name":"aws/codebuild/ruby:2.3.1","versions":["aws/codebuild/ruby:2.3.1-1.0.0","aws/codebuild/ruby:2.3.1-1.1.0","aws/codebuild/ruby:2.3.1-1.2.0"]}],"language":"RUBY"},{"images":[{"description":"AWS CodeBuild - Golang 1.10","name":"aws/codebuild/golang:1.10","versions":["aws/codebuild/golang:1.10-1.2.0"]}],"language":"GOLANG"},{"images":[{"description":"AWS CodeBuild - Node.js 4.3.2","name":"aws/codebuild/nodejs:4.3.2","versions":["aws/codebuild/nodejs:4.3.2-1.0.0","aws/codebuild/nodejs:4.3.2-1.1.0","aws/codebuild/nodejs:4.3.2-1.2.0"]},{"description":"AWS CodeBuild - Node.js 4.4.7","name":"aws/codebuild/nodejs:4.4.7","versions":["aws/codebuild/nodejs:4.4.7-1.0.0","aws/codebuild/nodejs:4.4.7-1.1.0","aws/codebuild/nodejs:4.4.7-1.2.0"]},{"description":"AWS CodeBuild - Node.js 6.3.1","name":"aws/codebuild/nodejs:6.3.1","versions":["aws/codebuild/nodejs:6.3.1-1.0.0","aws/codebuild/nodejs:6.3.1-1.1.0","aws/codebuild/nodejs:6.3.1-1.2.0"]}],"language":"NODE_JS"},{"images":[{"description":"AWS CodeBuild - Docker 17.09.0","name":"aws/codebuild/docker:17.09.0","versions":["aws/codebuild/docker:17.09.0-1.0.0","aws/codebuild/docker:17.09.0-1.1.0","aws/codebuild/docker:17.09.0-1.2.0"]}],"language":"DOCKER"},{"images":[{"description":"Linux .NET Core image with SDK 1","name":"aws/codebuild/dot-net:core-1","versions":["aws/codebuild/dot-net:core-1-1.0.0","aws/codebuild/dot-net:core-1-1.1.0","aws/codebuild/dot-net:core-1-1.2.0"]},{"description":"Linux .NET Core image with SDK 2","name":"aws/codebuild/dot-net:core-2.0","versions":["aws/codebuild/dot-net:core-2.0-1.0.0","aws/codebuild/dot-net:core-2.0-1.1.0","aws/codebuild/dot-net:core-2.0-1.2.0"]}],"language":"DOTNET"}],"platform":"UBUNTU"}]}
2018-04-17 16:12:36,297 - MainThread - botocore.hooks - DEBUG - Event needs-retry.codebuild.ListCuratedEnvironmentImages: calling handler <botocore.retryhandler.RetryHandler object at 0x7f4218752650>
2018-04-17 16:12:36,297 - MainThread - botocore.retryhandler - DEBUG - No retry needed.
2018-04-17 16:12:36,297 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2018-04-17 16:12:36,298 - MainThread - botocore.session - DEBUG - Loading variable output from defaults.
2018-04-17 16:12:36,298 - MainThread - awscli.formatter - DEBUG - RequestId: 52d70403-4206-11e8-94c1-11a6557d351f
{
    "platforms": [
        {
            "languages": [
                {
                    "images": [
                        {
                            "versions": [
                                "aws/codebuild/eb-java-7-amazonlinux-64:2.1.3-1.0.0"
                            ], 
                            "name": "aws/codebuild/eb-java-7-amazonlinux-64:2.1.3", 
                            "description": "AWS ElasticBeanstalk - Java 7 Running on Amazon Linux 64bit v2.1.3"
                        }, 
                        {
                            "versions": [
                                "aws/codebuild/eb-java-8-amazonlinux-64:2.1.3-1.0.0"
                            ], 
                            "name": "aws/codebuild/eb-java-8-amazonlinux-64:2.1.3", 
                            "description": "AWS ElasticBeanstalk - Java 8 Running on Amazon Linux 64bit v2.1.3"
                        }, 
                        {
                            "versions": [
                                "aws/codebuild/eb-java-7-amazonlinux-64:2.1.6-1.0.0"
                            ], 
                            "name": "aws/codebuild/eb-java-7-amazonlinux-64:2.1.6", 
                            "description": "AWS ElasticBeanstalk - Java 7 Running on Amazon Linux 64bit v2.1.6"
                        }, 
                        {
                            "versions": [
                                "aws/codebuild/eb-java-8-amazonlinux-64:2.1.6-1.0.0"
                            ], 
                            "name": "aws/codebuild/eb-java-8-amazonlinux-64:2.1.6", 
                            "description": "AWS ElasticBeanstalk - Java 8 Running on Amazon Linux 64bit v2.1.6"
                        }, 
                        {
                            "versions": [
                                "aws/codebuild/eb-java-7-amazonlinux-64:2.4.3-1.0.0"
                            ], 
                            "name": "aws/codebuild/eb-java-7-amazonlinux-64:2.4.3", 
                            "description": "AWS ElasticBeanstalk - Java 7 Running on Amazon Linux 64bit v2.4.3"
                        }, 
                        {
                            "versions": [
                                "aws/codebuild/eb-java-8-amazonlinux-64:2.4.3-1.0.0"
                            ], 
                            "name": "aws/codebuild/eb-java-8-amazonlinux-64:2.4.3", 
                            "description": "AWS ElasticBeanstalk - Java 8 Running on Amazon Linux 64bit v2.4.3"
                        }
                    ], 
                    "language": "JAVA"
                }, 
                {
                    "images": [
                        {
                            "versions": [
                                "aws/codebuild/eb-ruby-1.9-amazonlinux-64:2.1.3-1.0.0"
                            ], 
                            "name": "aws/codebuild/eb-ruby-1.9-amazonlinux-64:2.1.3", 
                            "description": "AWS ElasticBeanstalk - Ruby 1.9 Running on Amazon Linux 64bit v2.1.3"
                        }, 
                        {
                            "versions": [
                                "aws/codebuild/eb-ruby-2.0-amazonlinux-64:2.1.3-1.0.0"
                            ], 
                            "name": "aws/codebuild/eb-ruby-2.0-amazonlinux-64:2.1.3", 
                            "description": "AWS ElasticBeanstalk - Ruby 2.0 Running on Amazon Linux 64bit v2.1.3"
                        }, 
                        {
                            "versions": [
                                "aws/codebuild/eb-ruby-2.1-amazonlinux-64:2.1.3-1.0.0"
                            ], 
                            "name": "aws/codebuild/eb-ruby-2.1-amazonlinux-64:2.1.3", 
                            "description": "AWS ElasticBeanstalk - Ruby 2.1 Running on Amazon Linux 64bit v2.1.3"
                        }, 
                        {
                            "versions": [
                                "aws/codebuild/eb-ruby-2.2-amazonlinux-64:2.1.3-1.0.0"
                            ], 
                            "name": "aws/codebuild/eb-ruby-2.2-amazonlinux-64:2.1.3", 
                            "description": "AWS ElasticBeanstalk - Ruby 2.2 Running on Amazon Linux 64bit v2.1.3"
                        }, 
                        {
                            "versions": [
                                "aws/codebuild/eb-ruby-2.3-amazonlinux-64:2.1.3-1.0.0"
                            ], 
                            "name": "aws/codebuild/eb-ruby-2.3-amazonlinux-64:2.1.3", 
                            "description": "AWS ElasticBeanstalk - Ruby 2.3 Running on Amazon Linux 64bit v2.1.3"
                        }, 
                        {
                            "versions": [
                                "aws/codebuild/eb-ruby-1.9-amazonlinux-64:2.1.6-1.0.0"
                            ], 
                            "name": "aws/codebuild/eb-ruby-1.9-amazonlinux-64:2.1.6", 
                            "description": "AWS ElasticBeanstalk - Ruby 1.9 Running on Amazon Linux 64bit v2.1.6"
                        }, 
                        {
                            "versions": [
                                "aws/codebuild/eb-ruby-2.0-amazonlinux-64:2.1.6-1.0.0"
                            ], 
                            "name": "aws/codebuild/eb-ruby-2.0-amazonlinux-64:2.1.6", 
                            "description": "AWS ElasticBeanstalk - Ruby 2.0 Running on Amazon Linux 64bit v2.1.6"
                        }, 
                        {
                            "versions": [
                                "aws/codebuild/eb-ruby-2.1-amazonlinux-64:2.1.6-1.0.0"
                            ], 
                            "name": "aws/codebuild/eb-ruby-2.1-amazonlinux-64:2.1.6", 
                            "description": "AWS ElasticBeanstalk - Ruby 2.1 Running on Amazon Linux 64bit v2.1.6"
                        }, 
                        {
                            "versions": [
                                "aws/codebuild/eb-ruby-2.2-amazonlinux-64:2.1.6-1.0.0"
                            ], 
                            "name": "aws/codebuild/eb-ruby-2.2-amazonlinux-64:2.1.6", 
                            "description": "AWS ElasticBeanstalk - Ruby 2.2 Running on Amazon Linux 64bit v2.1.6"
                        }, 
                        {
                            "versions": [
                                "aws/codebuild/eb-ruby-2.3-amazonlinux-64:2.1.6-1.0.0"
                            ], 
                            "name": "aws/codebuild/eb-ruby-2.3-amazonlinux-64:2.1.6", 
                            "description": "AWS ElasticBeanstalk - Ruby 2.3 Running on Amazon Linux 64bit v2.1.6"
                        }, 
                        {
                            "versions": [
                                "aws/codebuild/eb-ruby-1.9-amazonlinux-64:2.3.2-1.0.0"
                            ], 
                            "name": "aws/codebuild/eb-ruby-1.9-amazonlinux-64:2.3.2", 
                            "description": "AWS ElasticBeanstalk - Ruby 1.9 Running on Amazon Linux 64bit v2.3.2"
                        }, 
                        {
                            "versions": [
                                "aws/codebuild/eb-ruby-2.0-amazonlinux-64:2.3.2-1.0.0"
                            ], 
                            "name": "aws/codebuild/eb-ruby-2.0-amazonlinux-64:2.3.2", 
                            "description": "AWS ElasticBeanstalk - Ruby 2.0 Running on Amazon Linux 64bit v2.3.2"
                        }, 
                        {
                            "versions": [
                                "aws/codebuild/eb-ruby-2.1-amazonlinux-64:2.3.2-1.0.0"
                            ], 
                            "name": "aws/codebuild/eb-ruby-2.1-amazonlinux-64:2.3.2", 
                            "description": "AWS ElasticBeanstalk - Ruby 2.1 Running on Amazon Linux 64bit v2.3.2"
                        }, 
                        {
                            "versions": [
                                "aws/codebuild/eb-ruby-2.2-amazonlinux-64:2.3.2-1.0.0"
                            ], 
                            "name": "aws/codebuild/eb-ruby-2.2-amazonlinux-64:2.3.2", 
                            "description": "AWS ElasticBeanstalk - Ruby 2.2 Running on Amazon Linux 64bit v2.3.2"
                        }, 
                        {
                            "versions": [
                                "aws/codebuild/eb-ruby-2.3-amazonlinux-64:2.3.2-1.0.0"
                            ], 
                            "name": "aws/codebuild/eb-ruby-2.3-amazonlinux-64:2.3.2", 
                            "description": "AWS ElasticBeanstalk - Ruby 2.3 Running on Amazon Linux 64bit v2.3.2"
                        }
                    ], 
                    "language": "RUBY"
                }, 
                {
                    "images": [
                        {
                            "versions": [
                                "aws/codebuild/eb-go-1.5-amazonlinux-64:2.1.3-1.0.0"
                            ], 
                            "name": "aws/codebuild/eb-go-1.5-amazonlinux-64:2.1.3", 
                            "description": "AWS ElasticBeanstalk - Go 1.5 Running on Amazon Linux 64bit v2.1.3"
                        }, 
                        {
                            "versions": [
                                "aws/codebuild/eb-go-1.5-amazonlinux-64:2.1.6-1.0.0"
                            ], 
                            "name": "aws/codebuild/eb-go-1.5-amazonlinux-64:2.1.6", 
                            "description": "AWS ElasticBeanstalk - Go 1.5 Running on Amazon Linux 64bit v2.1.6"
                        }, 

It did finish I just trimmed for posting.

I then ran the original command again without the --debug and it all works, no worries.

Again, I don't know what you'd do with this, but I'm gonna document it because it's obviously not a normal interaction.

JordonPhillips commented 6 years ago

The only thing I can think of is that you somehow got hold of a mismatched botocore version. When I install 1.11.24 I can successfully see the service.

JohnVonNeumann commented 6 years ago

Yeah look it's working now I guess I just figured I'd mention it because it was strange, I'll close. Cheers