aws s3api list-buckets \
#--query "Buckets[].Name"
aws s3api create-bucket --bucket \
--region eu-west-1 --create-bucket-configuration LocationConstraint=eu-west-1 \
--acl private
aws lambda list-functions --max-items 10 \
#--query 'Functions[].FunctionArn'
aws lambda create-function --function-name your-function \
--zip-file fileb://your-function.zip --handler go-file-name --runtime go1.x \
--environment "Variables={bucketPathFrom=your-bucket-path-for-upload-image,bucketPathTo=your-bucket-path-for-show-image,env=your-env,table=your-dynamodb-tablename}" \
--role your-lambda-role \
#--query 'FunctionArn'
aws lambda get-function \
--function-name s3-rekognition \
#--query 'Configuration.FunctionArn'
aws lambda invoke --function-name your-lambda-function-name out --log-type Tail \
#--query 'LogResult' --output text | base64 -d
aws lambda update-function-code \
--function-name your-lambda-function-name \
--zip-file fileb://path_to_your_archive.zip
aws s3api put-bucket-notification-configuration \
--bucket your-bucket \
--notification-configuration file://lambda/s3-bucket-notification-configuration.json
Extract LambdaFunctionArn from : aws lambda get-function --function-name your-lambda-function-name --query 'Configuration.FunctionArn'
aws dynamodb list-tables
aws dynamodb describe-table \
--table-name your-table-name-to-describe