serkan haytac
Search... ⌘K
All tags

Posts tagged 'aws'

9 posts

3 min read

AWS CLI Notes

[cloudfront](#cloudfront) | [ec2](#ec2) | [ecr](#ecr) | [elb](#elb) | [ecs](#ecs) | [events](#events) [kms](#kms) | [sns](#sns) | [s3](#s3) | [resourc

Read more
3 min read

Filter and delete s3 objects by date.

➜ ~ aws s3api list-objects --bucket fake-bucket --query 'Contents[?LastModified>=`2018-10-04` ].{Key:Key}' --prefix "2018-10-04" --output text | xar

Read more
3 min read

Search aws security groups for a given ip address.

➜ ~ aws ec2 describe-security-groups --query 'SecurityGroups[?IpPermissions[?contains(IpRanges[].CidrIp, `0.0.0.0/0`)]].{GroupId: GroupId, GroupName:

Read more
3 min read

Useful EC2 cli commands.

[AWS Docs](https://docs.aws.amazon.com/cli/latest/userguide/controlling-output.html)

Read more
3 min read

Useful aws cli rds commands i use often.

aws --profile=HA rds describe-db-instances --query 'DBInstances[?DBInstanceIdentifier==`evox-dev`]'

Read more
3 min read

Some useful cloudtrail commands i use often.

[AWS Docs](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/view-cloudtrail-events-cli.html#attribute-lookup-example)

Read more
3 min read

TIL -AWS has a nice api endpoint to get its ip ranges.

>> curl -s https://ip-ranges.amazonaws.com/ip-ranges.json | jq -r '.prefixes[] | select(.service=="EC2") | .ip_prefix'

Read more