aws-cli

awscli version 2 on alpine linux

时光总嘲笑我的痴心妄想 提交于 2020-06-12 01:46:54
问题 I was trying to put awscli_v2 into an alpine-based docker container and see that it fails with the following error message: /aws/install: line 78: /aws/dist/aws: not found Considering that the file itself is there and can be listed with ls, I would guess that some libraries that the executable ./aws/dist/aws relies upon are not present on alpine. Does someone know which libraries that might be? 回答1: Actually with a bit a effort it is possible to run AWS CLI v2 on Alpine: FROM alpine:3.11 ENV

How can I find the arn of an api gateway stage?

断了今生、忘了曾经 提交于 2020-05-26 10:32:11
问题 I am trying to use awscli to add tags to my api gateway stage https://docs.aws.amazon.com/cli/latest/reference/apigateway/tag-resource.html I am required to supply the --resource-arn for the stage, however I am unable to ascertain this value. I have tried using both awscli and the console to determine this value, but have been unable to find what the arn for the api gateway stage is. I have also tried guessing based off arn pattern/formats. How can I determine this value, or alternatively

How to get the most recently launched EC2 instance with AWS CLI?

被刻印的时光 ゝ 提交于 2020-05-26 05:25:10
问题 I'm currently using the following CLI command to get the instance PublicIPAddress and LaunchTime for a given instance Name tag, 'myInstanceName': aws ec2 describe-instances --filters 'Name=tag:Name,Values=myInstanceName' \ --region us-east-1 \ --query 'Reservations[*].Instances[*].{PublicIpAddress: PublicIpAddress, LaunchTime: LaunchTime}' This results in the following: [ { "LaunchTime": "2019-01-25T11:49:06.000Z", "PublicIpAddress": "11.111.111.11" } ] This is fine, but if there are two

How to get the most recently launched EC2 instance with AWS CLI?

不羁岁月 提交于 2020-05-26 05:19:50
问题 I'm currently using the following CLI command to get the instance PublicIPAddress and LaunchTime for a given instance Name tag, 'myInstanceName': aws ec2 describe-instances --filters 'Name=tag:Name,Values=myInstanceName' \ --region us-east-1 \ --query 'Reservations[*].Instances[*].{PublicIpAddress: PublicIpAddress, LaunchTime: LaunchTime}' This results in the following: [ { "LaunchTime": "2019-01-25T11:49:06.000Z", "PublicIpAddress": "11.111.111.11" } ] This is fine, but if there are two

How to get the most recently launched EC2 instance with AWS CLI?

拜拜、爱过 提交于 2020-05-26 05:19:32
问题 I'm currently using the following CLI command to get the instance PublicIPAddress and LaunchTime for a given instance Name tag, 'myInstanceName': aws ec2 describe-instances --filters 'Name=tag:Name,Values=myInstanceName' \ --region us-east-1 \ --query 'Reservations[*].Instances[*].{PublicIpAddress: PublicIpAddress, LaunchTime: LaunchTime}' This results in the following: [ { "LaunchTime": "2019-01-25T11:49:06.000Z", "PublicIpAddress": "11.111.111.11" } ] This is fine, but if there are two

hosting multiple sites on S3 bucket serving index.html from directory path

怎甘沉沦 提交于 2020-05-25 07:55:32
问题 I'm new to using AWS S3. I want to know if it's possible to host multiple static websites in one bucket using the website route directing meta data option. I am planning to have multiple folders each with their own index.html , but how can I configure the bucket settings to route to each individual site when a user types the address. For example by typing http://<bucket-name>.s3-website-<AWS-region>.amazonaws.com/folder1 will take them to website 1 and http://<bucket-name>.s3-website-<AWS

AWS Lambda Logs using AWSCLI: How can I access Lambda logs using AWSCLI?

被刻印的时光 ゝ 提交于 2020-05-25 04:48:08
问题 I was trying to work with AWS Lambda using the awscli on an ubuntu ec2 instance, and I do not have access to the aws console. Note that I am not using serverless or zapper, I directly zip my main.py file along with the dependency files as mentioned here I run the function like this aws lambda invoke --function-name python-test --invocation-type RequestResponse outfile.txt The errors given in the outfile are very vague and dont help in debugging, rather they confuse me more. Using the admin's

CLI to put data into AWS Firehose

血红的双手。 提交于 2020-05-14 19:09:30
问题 AWS Firehose was released today. I'm playing around with it and trying to figure out how to put data into the stream using AWS CLI. I have a simple JSON payload and the corresponding Redshift table with columns that map to the JSON attributes. I've tried various combinations but I can't seem to pass in the JSON payload via the cli. What I've tried: aws firehose put-record --delivery-stream-name test-delivery-stream --record '{ "attribute": 1 }' aws firehose put-record --delivery-stream-name

CLI to put data into AWS Firehose

我与影子孤独终老i 提交于 2020-05-14 19:07:02
问题 AWS Firehose was released today. I'm playing around with it and trying to figure out how to put data into the stream using AWS CLI. I have a simple JSON payload and the corresponding Redshift table with columns that map to the JSON attributes. I've tried various combinations but I can't seem to pass in the JSON payload via the cli. What I've tried: aws firehose put-record --delivery-stream-name test-delivery-stream --record '{ "attribute": 1 }' aws firehose put-record --delivery-stream-name

CLI to put data into AWS Firehose

喜你入骨 提交于 2020-05-14 19:06:23
问题 AWS Firehose was released today. I'm playing around with it and trying to figure out how to put data into the stream using AWS CLI. I have a simple JSON payload and the corresponding Redshift table with columns that map to the JSON attributes. I've tried various combinations but I can't seem to pass in the JSON payload via the cli. What I've tried: aws firehose put-record --delivery-stream-name test-delivery-stream --record '{ "attribute": 1 }' aws firehose put-record --delivery-stream-name