Created
January 15, 2020 22:56
-
-
Save TechnicalMercenary/48f15680f1fcd506b256e84157f08e30 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gregory.bonk@greg-bonk-mbp:~/workspace$ aws --debug eks update-kubeconfig --name my-eks --region us-west-2 | |
2020-01-15 17:35:03,767 - MainThread - awscli.clidriver - DEBUG - CLI version: aws-cli/1.17.3 Python/2.7.17 Darwin/19.2.0 botocore/1.14.3 | |
2020-01-15 17:35:03,767 - MainThread - awscli.clidriver - DEBUG - Arguments entered to CLI: ['--debug', 'eks', 'update-kubeconfig', '--name', 'my-eks', '--region', 'us-west-2'] | |
2020-01-15 17:35:03,767 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function add_scalar_parsers at 0x1026e64d0> | |
2020-01-15 17:35:03,767 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function register_uri_param_handler at 0x1022b1dd0> | |
2020-01-15 17:35:03,767 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function inject_assume_role_provider_cache at 0x1023193d0> | |
2020-01-15 17:35:03,772 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function attach_history_handler at 0x1025b9f50> | |
2020-01-15 17:35:03,772 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/aws/lib/python2.7/site-packages/botocore/data/eks/2017-11-01/service-2.json | |
2020-01-15 17:35:03,779 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/aws/lib/python2.7/site-packages/botocore/data/eks/2017-11-01/service-2.sdk-extras.json | |
2020-01-15 17:35:03,781 - MainThread - botocore.hooks - DEBUG - Event building-command-table.eks: calling handler <function inject_commands at 0x10263e0d0> | |
2020-01-15 17:35:03,781 - MainThread - botocore.hooks - DEBUG - Event building-command-table.eks: calling handler <function add_waiters at 0x102705f50> | |
2020-01-15 17:35:03,793 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/aws/lib/python2.7/site-packages/botocore/data/eks/2017-11-01/waiters-2.json | |
2020-01-15 17:35:03,795 - MainThread - botocore.hooks - DEBUG - Event building-command-table.update-kubeconfig: calling handler <function add_waiters at 0x102705f50> | |
2020-01-15 17:35:03,795 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.update-kubeconfig.role-arn: calling handler <awscli.paramfile.URIArgumentHandler object at 0x102822b10> | |
2020-01-15 17:35:03,796 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.update-kubeconfig.verbose: calling handler <awscli.paramfile.URIArgumentHandler object at 0x102822b10> | |
2020-01-15 17:35:03,796 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.custom.update-kubeconfig: calling handler <awscli.argprocess.ParamShorthandParser object at 0x1022f2b90> | |
2020-01-15 17:35:03,796 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.update-kubeconfig.dry-run: calling handler <awscli.paramfile.URIArgumentHandler object at 0x102822b10> | |
2020-01-15 17:35:03,796 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.custom.update-kubeconfig: calling handler <awscli.argprocess.ParamShorthandParser object at 0x1022f2b90> | |
2020-01-15 17:35:03,796 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.update-kubeconfig.kubeconfig: calling handler <awscli.paramfile.URIArgumentHandler object at 0x102822b10> | |
2020-01-15 17:35:03,796 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.update-kubeconfig.alias: calling handler <awscli.paramfile.URIArgumentHandler object at 0x102822b10> | |
2020-01-15 17:35:03,797 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.update-kubeconfig.name: calling handler <awscli.paramfile.URIArgumentHandler object at 0x102822b10> | |
2020-01-15 17:35:03,797 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.custom.update-kubeconfig: calling handler <awscli.argprocess.ParamShorthandParser object at 0x1022f2b90> | |
2020-01-15 17:35:03,818 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: env | |
2020-01-15 17:35:03,818 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: assume-role | |
2020-01-15 17:35:03,818 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: assume-role-with-web-identity | |
2020-01-15 17:35:03,818 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: shared-credentials-file | |
2020-01-15 17:35:03,819 - MainThread - botocore.credentials - INFO - Found credentials in shared credentials file: ~/.aws/credentials | |
2020-01-15 17:35:03,820 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/aws/lib/python2.7/site-packages/botocore/data/endpoints.json | |
2020-01-15 17:35:03,869 - MainThread - botocore.hooks - DEBUG - Event choose-service-name: calling handler <function handle_service_name_alias at 0x101e86650> | |
2020-01-15 17:35:03,870 - MainThread - botocore.hooks - DEBUG - Event creating-client-class.eks: calling handler <function add_generate_presigned_url at 0x101dfabd0> | |
2020-01-15 17:35:03,870 - MainThread - botocore.regions - DEBUG - Creating a regex based endpoint for eks, us-west-2 | |
2020-01-15 17:35:03,874 - MainThread - botocore.endpoint - DEBUG - Setting eks timeout as (60, 60) | |
2020-01-15 17:35:03,875 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/aws/lib/python2.7/site-packages/botocore/data/_retry.json | |
2020-01-15 17:35:03,877 - MainThread - botocore.client - DEBUG - Registering retry handlers for service: eks | |
2020-01-15 17:35:03,878 - MainThread - botocore.hooks - DEBUG - Event before-parameter-build.eks.DescribeCluster: calling handler <function generate_idempotent_uuid at 0x101e874d0> | |
2020-01-15 17:35:03,878 - MainThread - botocore.hooks - DEBUG - Event before-call.eks.DescribeCluster: calling handler <function inject_api_version_header_if_needed at 0x101e89cd0> | |
2020-01-15 17:35:03,878 - MainThread - botocore.endpoint - DEBUG - Making request for OperationModel(name=DescribeCluster) with params: {'body': '', 'url': u'https://eks.us-west-2.amazonaws.com/clusters/my-eks', 'headers': {'User-Agent': 'aws-cli/1.17.3 Python/2.7.17 Darwin/19.2.0 botocore/1.14.3'}, 'context': {'auth_type': None, 'client_region': u'us-west-2', 'has_streaming_input': False, 'client_config': <botocore.config.Config object at 0x104597550>}, 'query_string': {}, 'url_path': u'/clusters/my-eks', 'method': u'GET'} | |
2020-01-15 17:35:03,878 - MainThread - botocore.hooks - DEBUG - Event request-created.eks.DescribeCluster: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x104597510>> | |
2020-01-15 17:35:03,906 - MainThread - botocore.hooks - DEBUG - Event choose-signer.eks.DescribeCluster: calling handler <function set_operation_specific_signer at 0x101e86ad0> | |
2020-01-15 17:35:03,907 - MainThread - botocore.auth - DEBUG - Calculating signature using v4 auth. | |
2020-01-15 17:35:03,907 - MainThread - botocore.auth - DEBUG - CanonicalRequest: | |
GET | |
/clusters/my-eks | |
host:eks.us-west-2.amazonaws.com | |
x-amz-date:20200115T223503Z | |
x-amz-security-token:FwoGZXIvYXdzEAYaDOI0wL4GYGC4p5WwgyKGAZGER3DTsgtVTvyZ6ISPgHBRv8BWexKPdTZal1XwIEL5lvGyTKpzntYkIE5jIUa66K3L+11d6eBJT+AkZGc7GbrBsSL4tK+OhhskEmn1eC490a8vnxTxq/OPnGm8LEMxYvpzjU1CK++6SKI3kuKFMLeHrC0I04WxJ2O2OKXP4m3zFhEtZ39lKI7v/fAFMiiLWHUT+IK0v/DDwiL1BjE8II99HdM3CFdpZzPOuWm+NhtI2wdnNPeH | |
host;x-amz-date;x-amz-security-token | |
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 | |
2020-01-15 17:35:03,907 - MainThread - botocore.auth - DEBUG - StringToSign: | |
AWS4-HMAC-SHA256 | |
20200115T223503Z | |
20200115/us-west-2/eks/aws4_request | |
b0ed8a687f8c9aec86498e4331f2c11fe5e840a3f450176c18a328f48591036f | |
2020-01-15 17:35:03,907 - MainThread - botocore.auth - DEBUG - Signature: | |
60380aa6ace56bf23956bcef56061f8eaa8462ed7c506d9b5d21280384bbadad | |
2020-01-15 17:35:03,907 - MainThread - botocore.endpoint - DEBUG - Sending http request: <AWSPreparedRequest stream_output=False, method=GET, url=https://eks.us-west-2.amazonaws.com/clusters/my-eks, headers={'Authorization': 'AWS4-HMAC-SHA256 Credential=ASIAQFKSMF7LU5CL5ON5/20200115/us-west-2/eks/aws4_request, SignedHeaders=host;x-amz-date;x-amz-security-token, Signature=60380aa6ace56bf23956bcef56061f8eaa8462ed7c506d9b5d21280384bbadad', 'X-Amz-Security-Token': 'FwoGZXIvYXdzEAYaDOI0wL4GYGC4p5WwgyKGAZGER3DTsgtVTvyZ6ISPgHBRv8BWexKPdTZal1XwIEL5lvGyTKpzntYkIE5jIUa66K3L+11d6eBJT+AkZGc7GbrBsSL4tK+OhhskEmn1eC490a8vnxTxq/OPnGm8LEMxYvpzjU1CK++6SKI3kuKFMLeHrC0I04WxJ2O2OKXP4m3zFhEtZ39lKI7v/fAFMiiLWHUT+IK0v/DDwiL1BjE8II99HdM3CFdpZzPOuWm+NhtI2wdnNPeH', 'X-Amz-Date': '20200115T223503Z', 'User-Agent': 'aws-cli/1.17.3 Python/2.7.17 Darwin/19.2.0 botocore/1.14.3'}> | |
2020-01-15 17:35:03,908 - MainThread - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): eks.us-west-2.amazonaws.com:443 | |
2020-01-15 17:35:04,448 - MainThread - urllib3.connectionpool - DEBUG - https://eks.us-west-2.amazonaws.com:443 "GET /clusters/my-eks HTTP/1.1" 200 3577 | |
2020-01-15 17:35:04,448 - MainThread - botocore.parsers - DEBUG - Response headers: {'x-amzn-RequestId': 'dd96b632-26e7-4dd5-9a1b-a537a8a0312e', 'Content-Length': '3577', 'x-amz-apigw-id': 'GXP_0ElKPHcF79A=', 'X-Amzn-Trace-Id': 'Root=1-5e1f9398-fc281c382e548f945beb613c', 'Connection': 'keep-alive', 'Date': 'Wed, 15 Jan 2020 22:35:04 GMT', 'Content-Type': 'application/json'} | |
2020-01-15 17:35:04,448 - MainThread - botocore.parsers - DEBUG - Response body: | |
{ | |
"cluster" : { | |
"name" : "my-eks", | |
"arn" : "arn:aws:eks:us-west-2:011447054295:cluster/my-eks", | |
"createdAt" : 1.5791193988E9, | |
"version" : "1.14", | |
"endpoint" : "https://45BBE757922E66C86B94DB16FEA27644.sk1.us-west-2.eks.amazonaws.com", | |
"roleArn" : "arn:aws:iam::011447054295:role/my-eks.us-west-2.cluster", | |
"resourcesVpcConfig" : { | |
"subnetIds" : [ "subnet-08069b7e7553d949a", "subnet-0ac79affe00e19de4", "subnet-0a58c76e1a17beb98", "subnet-062f3456719f6ad87", "subnet-0303023c3f2df8a8b", "subnet-032f672f4b2943f68", "subnet-003bed6c8734575a3", "subnet-01eb505725f6d21a3", "subnet-05b2ab89a920b6f57" ], | |
"securityGroupIds" : [ "sg-06bb91ecd81df64b6" ], | |
"clusterSecurityGroupId" : "sg-03b7a3c9f09ee64d3", | |
"vpcId" : "vpc-01b0b9bccf5b74d33", | |
"endpointPublicAccess" : true, | |
"endpointPrivateAccess" : false, | |
"publicAccessCidrs" : [ "0.0.0.0/0" ] | |
}, | |
"logging" : { | |
"clusterLogging" : [ { | |
"types" : [ "api", "audit", "authenticator", "controllerManager", "scheduler" ], | |
"enabled" : false | |
} ] | |
}, | |
"identity" : { | |
"oidc" : { | |
"issuer" : "https://oidc.eks.us-west-2.amazonaws.com/id/45BBE757922E66C86B94DB16FEA27644" | |
} | |
}, | |
"status" : "ACTIVE", | |
"certificateAuthority" : { | |
"data" : "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUN5RENDQWJDZ0F3SUJBZ0lCQURBTkJna3Foa2lHOXcwQkFRc0ZBREFWTVJNd0VRWURWUVFERXdwcmRXSmwKY201bGRHVnpNQjRYRFRJd01ERXhOVEl3TWpRd09Wb1hEVE13TURFeE1qSXdNalF3T1Zvd0ZURVRNQkVHQTFVRQpBeE1LYTNWaVpYSnVaWFJsY3pDQ0FTSXdEUVlKS29aSWh2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GxJaU5JcGlGVWFOSG5CdzBBZz0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=" | |
}, | |
"clientRequestToken" : null, | |
"platformVersion" : "eks.7", | |
"tags" : { | |
"cluster-id" : "eks" | |
} | |
} | |
} | |
2020-01-15 17:35:04,451 - MainThread - botocore.hooks - DEBUG - Event needs-retry.eks.DescribeCluster: calling handler <botocore.retryhandler.RetryHandler object at 0x104620690> | |
2020-01-15 17:35:04,451 - MainThread - botocore.retryhandler - DEBUG - No retry needed. | |
2020-01-15 17:35:04,453 - MainThread - awscli.clidriver - DEBUG - Exception caught in main() | |
Traceback (most recent call last): | |
File "/usr/local/aws/lib/python2.7/site-packages/awscli/clidriver.py", line 217, in main | |
return command_table[parsed_args.command](remaining, parsed_args) | |
File "/usr/local/aws/lib/python2.7/site-packages/awscli/clidriver.py", line 358, in __call__ | |
return command_table[parsed_args.operation](remaining, parsed_globals) | |
File "/usr/local/aws/lib/python2.7/site-packages/awscli/customizations/commands.py", line 187, in __call__ | |
return self._run_main(parsed_args, parsed_globals) | |
File "/usr/local/aws/lib/python2.7/site-packages/awscli/customizations/eks/update_kubeconfig.py", line 128, in _run_main | |
new_cluster_dict["name"] | |
File "/usr/local/aws/lib/python2.7/site-packages/awscli/customizations/eks/update_kubeconfig.py", line 214, in choose_kubeconfig | |
if loaded_config.has_cluster(cluster_name): | |
File "/usr/local/aws/lib/python2.7/site-packages/awscli/customizations/eks/kubeconfig.py", line 68, in has_cluster | |
for cluster in self.content['clusters']] | |
TypeError: 'NoneType' object is not iterable | |
2020-01-15 17:35:04,456 - MainThread - awscli.clidriver - DEBUG - Exiting with rc 255 | |
'NoneType' object is not iterable | |
Cluster: [my-eks:us-west-2] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hi Gregory Bonk
Can do some help on this error
Error: local-exec provisioner error
│
│ with null_resource.local_exec,
│ on local-exec.tf line 3, in resource "null_resource" "local_exec":
│ 3: provisioner "local-exec" {
│
│ Error running command 'aws eks update-kubeconfig --name eks-production-dxchange-cloud --region us-east-2': exit status 255. Output:
│ 'NoneType' object is not iterable
:- Iam getting same issue,but im using terraform null resources to implement this..
code:
resource "null_resource" "local_exec" {
depends_on = [module.eks]
provisioner "local-exec" {
command = "aws eks update-kubeconfig --name ${local.cluster_name} --region ${var.aws_region}"
}
}