aws-cli

Does AWS CLI use SSL when uploading data into S3?

被刻印的时光 ゝ 提交于 2019-12-23 07:42:09
问题 Does the normal AWS CLI use SSL by default when transferring data into S3 with the following command? aws s3 cp source to destination 回答1: By default, the AWS CLI uses SSL when communicating with AWS services. AWS CLI command reference 回答2: I just tried running: > aws s3 ls and wireshark reports the response protocol used is TLSv1.2. So, yes it seems to be using SSL even for simple commands like ls. 来源: https://stackoverflow.com/questions/34654728/does-aws-cli-use-ssl-when-uploading-data-into

Access Django App on AWS ec2 host

妖精的绣舞 提交于 2019-12-23 05:45:37
问题 This issue might seem very trivial but please try to suggest a solution for this if possible. I have deployed a django App on AWS ec2 host and I am able to run the following command successfully. (venv)[ec2-user@ip-xxx-xx-xx-xx abc]$ python manage.py runserver Performing system checks... System check identified no issues (0 silenced). January 03, 2016 - 13:15:31 Django version 1.7.1, using settings 'abc.settings' Starting development server at http://127.0.0.1:8000/ Quit the server with

Stream logs to elastic using aws cli

非 Y 不嫁゛ 提交于 2019-12-22 18:31:57
问题 I would like to enable the Stream to Amazon Elasticsearch Service from Cloudwatch to Elasticsearch. I'm familiar with how to do that manually, I'm looking for a way to achieve that by running aws cli commands. assuming Elasticsearch is already configured, is there any way to automate the process ? 回答1: Behind the scene Stream to Amazon Elasticsearch service create new lambda and then it pushes the log to Lambda then ELK. destination arn The Amazon Resource Name (ARN) of the Kinesis stream,

Deploy AWS Elastic beanstalk to an environment in different region

百般思念 提交于 2019-12-22 10:44:19
问题 I'm a little new to Elastic Beanstalk on AWS so forgive me if this is a little newbie.... But we've got an instance of our product in a new region (EU) and I'm unsure how to bind a specific git brand to deploy to that environment? (Using CLI3) If it something best setup in the config.yml? Many thanks! 回答1: To do it once: eb deploy {environment-name} --region {region-name} To always deploy to it: eb init --region {region-name} eb use {environment-name} Then use: eb deploy 来源: https:/

AWS S3 sync between buckets overwriting newer destination files

拥有回忆 提交于 2019-12-22 10:27:57
问题 We have two s3 buckets, and we have a sync cron job that should copy bucket1 changes to bucket2. aws s3 sync s3://bucket1/images/ s3://bucket2/images/ When a new image is added to bucket1, it correctly gets copied over to bucket2. However, if we upload a new version of that image to bucket2, when the sync job next runs it actually copies the older version from bucket1 over to bucket2, replacing the newer version we just put there. This is part of a migration process, and in time the only

Retrieving the IP address of an EC2 instance given an instance ID

对着背影说爱祢 提交于 2019-12-22 08:47:52
问题 Using the aws CLI , how can I retrieve the private IP address of an EC2 instance given its instanceID? When I do: aws ec2 describe-instance-status --instance-ids <instance_ID> I get other information, but not the private IP addresses such as: { "InstanceStatuses": [ { "InstanceId": "XXXXX", "InstanceState": { "Code": 16, "Name": "running" }, "AvailabilityZone": "us-east-1a", "SystemStatus": { "Status": "ok", "Details": [ { "Status": "passed", "Name": "reachability" } ] }, "InstanceStatus": {

AWS CLI s3 copy fails with 403 error, trying to administrate a user-uploaded object

我的未来我决定 提交于 2019-12-22 04:28:10
问题 Trying to copy a file from an S3 bucket to my local machine: aws s3 cp s3://my-bucket-name/audio-0b7ea3d0-13ab-4c7c-ac66-1bec2e572c14.wav ./ fatal error: An error occurred (403) when calling the HeadObject operation: Forbidden Things I have confirmed: I'm using version aws-cli/1.11.13 Python/3.5.2 Linux/4.4.0-75-generic botocore/1.4.70 The S3 Object key is correct. I have copied it directly from the S3 web interface. The AWS CLI is configured with valid credentials. I generated a new key

AWS credentials during Docker build process

孤者浪人 提交于 2019-12-22 03:59:53
问题 As part of the process to build my docker container I need to pull some files from an s3 bucket but I keep getting fatal error: Unable to locate credentials even though for now I am setting the credentials as ENV vars (though would like to know of a better way to do this) So when building the container I run docker build -t my-container --build-arg AWS_DEFAULT_REGION="region" --build-arg AWS_ACCESS_KEY="key" --build-arg AWS_SECRET_ACCESS_KEY="key" . --squash And in my Dockerfile I have ARG

AWS CloudFront SSL Certificate - MalformedCertificate error

亡梦爱人 提交于 2019-12-22 00:01:59
问题 I am facing problem when uploading SSL certificate to AWS IAM for cloundfront. I think that the command is ok and files are OK but still it gives an error. We are using the following command for uploading SSL certificate: aws iam upload-server-certificate --server-certificate-name SSL-CloudFront --certificate-body Public.cer --private-key keyStore.pem --certificate-chain STAR_xxxxxx_com.ca-bundle --path /cloudfront/ICE_SSL/ Error: A client error (MalformedCertificate) occurred when calling

AWS cli List unused elb

放肆的年华 提交于 2019-12-21 20:47:17
问题 I am pretty much new to AWS. I was trying to list the load balances which are not attached to any of the instances. I was trying describe-load-balancers using aws cli but was not able to get an option that filters the elbs. Please provide some suggestions on how to achieve this. 回答1: Assuming you have aws cli setup with suitable keys, this long line of shell should list the ELBs with a count of instances attached to them. If it says zero then there are no instances attached for i in `aws elb