aws-cli

AWS CLI upload failed: unknown encoding: idna

拈花ヽ惹草 提交于 2020-01-12 14:32:31
问题 I am trying to push some files up to s3 with the AWS CLI and I am running into an error: upload failed: ... An HTTP Client raised and unhandled exception: unknown encoding: idna I believe this is a Python specific problem but I am not sure how to enable this type of encoding for my python interpreter. I just freshly installed Python 3.6 and have verified that it being used by powershell and cmd. $> python --version Python 3.6.7 If this isn't a Python specific problem, it might be helpful to

AWS CLI upload failed: unknown encoding: idna

喜欢而已 提交于 2020-01-12 14:32:27
问题 I am trying to push some files up to s3 with the AWS CLI and I am running into an error: upload failed: ... An HTTP Client raised and unhandled exception: unknown encoding: idna I believe this is a Python specific problem but I am not sure how to enable this type of encoding for my python interpreter. I just freshly installed Python 3.6 and have verified that it being used by powershell and cmd. $> python --version Python 3.6.7 If this isn't a Python specific problem, it might be helpful to

AWS CLI: ECR list-images, get newest

自作多情 提交于 2020-01-12 05:02:09
问题 Using AWS CLI, and jq if needed, I'm trying to get the tag of the newest image in a particular repo . Let's call the repo foo , and say the latest image is tagged bar . What query do I use to return bar ? I got as far as aws ecr list-images --repository-name foo and then realized that the list-images documentation gives no reference to the date as a queryable field. Sticking the above in a terminal gives me keypairs with just the tag and digest, no date. Is there still some way to get the

Is it possible to copy between AWS accounts using AWS CLI?

社会主义新天地 提交于 2020-01-12 03:24:31
问题 Is it possible using AWS CLI to copy the contents of S3 buckets between AWS accounts? I know it's possible to copy/sync between buckets in the same account, but I need to get the contents of an old AWS account into a new one. I have AWS CLI configured with two profiles, but I don't see how I can use both profiles in a single copy/sync command. 回答1: Very Simple. Let's say: Old AWS Account = old@aws.com New AWS Account = new@aws.com Loginto the AWS console as old@aws.com Go to the bucket of

Is it possible to copy between AWS accounts using AWS CLI?

北战南征 提交于 2020-01-12 03:23:35
问题 Is it possible using AWS CLI to copy the contents of S3 buckets between AWS accounts? I know it's possible to copy/sync between buckets in the same account, but I need to get the contents of an old AWS account into a new one. I have AWS CLI configured with two profiles, but I don't see how I can use both profiles in a single copy/sync command. 回答1: Very Simple. Let's say: Old AWS Account = old@aws.com New AWS Account = new@aws.com Loginto the AWS console as old@aws.com Go to the bucket of

How to simplify aws DynamoDB query JSON output from the command line?

强颜欢笑 提交于 2020-01-10 09:03:39
问题 I'm working with The AWS Command Line Interface for DynamoDB. When we query an item, we get a very detailed JSON output. You get something like this (it has been built from the get-item in order to be almost exhaustive (the NULL type has been omitted) aws command line help: { "Count": 1, "Items": [ { "Id": { "S": "app1" }, "Parameters": { "M": { "nfs": { "M": { "IP" : { "S" : "172.16.0.178" }, "defaultPath": { "S": "/mnt/ebs/" }, "key": { "B": "dGhpcyB0ZXh0IGlzIGJhc2U2NC1lbmNvZGVk" },

How to simplify aws DynamoDB query JSON output from the command line?

痞子三分冷 提交于 2020-01-10 09:03:09
问题 I'm working with The AWS Command Line Interface for DynamoDB. When we query an item, we get a very detailed JSON output. You get something like this (it has been built from the get-item in order to be almost exhaustive (the NULL type has been omitted) aws command line help: { "Count": 1, "Items": [ { "Id": { "S": "app1" }, "Parameters": { "M": { "nfs": { "M": { "IP" : { "S" : "172.16.0.178" }, "defaultPath": { "S": "/mnt/ebs/" }, "key": { "B": "dGhpcyB0ZXh0IGlzIGJhc2U2NC1lbmNvZGVk" },

How to simplify aws DynamoDB query JSON output from the command line?

扶醉桌前 提交于 2020-01-10 09:02:11
问题 I'm working with The AWS Command Line Interface for DynamoDB. When we query an item, we get a very detailed JSON output. You get something like this (it has been built from the get-item in order to be almost exhaustive (the NULL type has been omitted) aws command line help: { "Count": 1, "Items": [ { "Id": { "S": "app1" }, "Parameters": { "M": { "nfs": { "M": { "IP" : { "S" : "172.16.0.178" }, "defaultPath": { "S": "/mnt/ebs/" }, "key": { "B": "dGhpcyB0ZXh0IGlzIGJhc2U2NC1lbmNvZGVk" },

Why is Jenkins flagging an error with correct AWS CLI syntax?

本秂侑毒 提交于 2020-01-06 14:42:07
问题 I was having issues with escaping quotes for a shell command in Jenkins pipeline, so I asked in How to escape quotes in a AWS CLI in a Jenkins pipeline?, which was answered and the quotes are now escaped correctly when I run the command. However I get the following in Jenkins when I execute the following aws elbv2 CLI command in a pipeline + aws elbv2 modify-listener --listener-arn arn:aws:elasticloadbalancing:us-east-1:1234567890:listener/app/my-alb/123456789 --default-actions '[{"Type":

SSL validation failed for https://s3.zoneame.amazonaws.com/ [SSL: CERTIFICATE_ VERIFY_FAILED] certificate verify failed (_ssl.c:749)

我与影子孤独终老i 提交于 2020-01-06 06:47:56
问题 When I run the command aws s3 ls I'm getting this error: SSL validation failed for https://s3.zonename.amazonaws.com/ [SSL: CERTIFICATE_ VERIFY_FAILED] certificate verify failed (_ssl.c:749) It work's fine with --no-verify-ssl How can I make it work with ssl verficication? aws s3 ls --debug log below: Traceback (most recent call last): File "C:\Program Files\Amazon\AWSCLI\runtime\lib\site-packages\urllib3\connect ionpool.py", line 594, in urlopen self._prepare_proxy(conn) File "C:\Program