Skip to content

Instantly share code, notes, and snippets.

View ravsau's full-sized avatar

Saurav Sharma ravsau

View GitHub Profile
@ravsau
ravsau / RDS-notes.MD
Last active March 12, 2024 11:01
RDS Notes

What does Amazon RDS manage on my behalf?

  • Amazon RDS manages the work involved in setting up a relational database: from provisioning the infrastructure capacity you request to installing the database software.
  • Once your database is up and running, Amazon RDS automates common administrative tasks such as performing backups and patching the software that powers your database.
  • With optional Multi-AZ deployments, Amazon RDS also manages synchronous data replication across Availability Zones with automatic failover.

How do I access my running DB instance?

  • Once your DB instance is available, you can retrieve its endpoint via the DB instance description in the AWS Management Console, DescribeDBInstances API or describe-db-instances command. image
@ravsau
ravsau / send-sms.MD
Last active June 5, 2023 01:17
send sms using AWS CLI

Send a quick SMS/text message .

aws sns publish --phone-number +12012022034 --message " This is bob. My phone's dead. I'll be home soon."

Things to note:

  • Start with +counrtycode
@ravsau
ravsau / terraform-lab.md
Last active June 15, 2021 06:24
Terraform lab
@ravsau
ravsau / cli-cloud.MD
Created December 27, 2018 17:03
Simple CLI commands for Amazon S3 and GCP Cloud Storage

For the following commands to work, you need to have AWS CLI and gstuil installed. For gsutil, you can use the GCP cloud shell. For AWS CLI , you can provision an Aaazon Linux EC2 insances which comes with the S3 CLI Installed.

List buckets in AWS S3

aws s3 ls

List buckets in GCP Cloud Storage

gsutil ls

FWIW: I didn't produce the content presented here (the outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.


Effective Engineer - Notes

What's an Effective Engineer?

@ravsau
ravsau / spark-emr-wordcount.MD
Last active September 21, 2019 02:31
Spark-word-count-on-aws-emr
@ravsau
ravsau / linux-ports.MD
Created June 1, 2019 20:13
Ports Linux Troubleshooting

Kill Process running a certain port:

kill -9 `lsof -t -i :port_number`
@ravsau
ravsau / reinvent.MD
Last active May 14, 2019 16:20
AWS Reinvent 2018 Videos
@ravsau
ravsau / essential-aws-cli-commands.MD
Last active April 27, 2019 18:10
Essential commands for AWS CLI. Feel free to add some essential commands in the comments.

List all the discovered resources in your region

aws configservice get-discovered-resource-counts --query 'resourceCounts[].[resourceType,count]' --output table```
### Send a quick SMS/text message . Start with +counrtycode
```console
aws sns publish --phone-number +12012022034 --message "how are you"

Rename a S3 file

aws s3 mv s3://abc.net/snap.jpg s3://abc.net/snap1.jpg
@ravsau
ravsau / vpc.tf
Created March 6, 2019 02:39
vpc deny tag terraform file
resource "aws_iam_policy" "policy" {
name = "test_policy"
path = "/"
description = "My test policy"
policy = <<EOF
{
"Version": "2012-10-17",
"Statement": [
{