Using root access keys run the aws s3api list-buckets
command to return list of S3 buckets
Example Output:
{
"Owner": {
"DisplayName": "<OwnerName>",
The best practice is to run one worker process per core - it is defined by worker_processes
directive. To verify how many cores is your machine running execute the grep processor /proc/cpuinfo | wc -l
command. The worker_connections
however specify how many simultaneous connections can be opened by a worker process (default value for nginx is 512).
Each docker aplications are defined in upstream directives. The request with URI /app1/ will be proxied to docker-app1, however the request with URI /app2/ will be proxied to docker-app2.
worker_processes 1;
events {
worker_connections 1024;
Query the instance metadata using curl and parse the output with jq tool
curl --silent http://169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region
Example Output:
us-east-1
As an example query AWS for a list of all NAT Instance AMIs:
aws ec2 describe-images --filter Name="owner-alias",Values="amazon" --filter Name="name",Values="amzn-ami-vpc-nat*" --region us-west-2 | jq '.Images | sort_by(.CreationDate)'
If only specific fields are required to print into output: