Skip to content

Instantly share code, notes, and snippets.

View exequielrafaela's full-sized avatar
💭
☕ if(infra == code){return true}

Exequiel Barrirero exequielrafaela

💭
☕ if(infra == code){return true}
View GitHub Profile
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 3.
"AWS Services","Key Points"
"AWS Backup","AWS Backup is a centralised backup service that makes it easy and cost-effective for you to backup your application data across AWS services in the AWS Cloud, helping you meet your business and regulatory backup compliance requirements.You should use AWS Backup to manage and monitor backups across the AWS services you use, from a single place.Services supported:EBS (it leverages EBS Snapshots)RDS (it supports RDS Aurora Automated Backups and RDS Snapshots)EFS (transition to cold storage is supported for this service)DynamoDBFSxStorage Gateway.You pay for the amount of backup storage you use and the amount of backup data you restore in the month. [*]"
"AWS Data Lifecycle Manager","DLM provides a simple way to manage the lifecycle of EBS resources, such as volume snapshots.You should use DLM when you want to automate the creation, retention, and deletion of EBS snapshots.It is simple to implement. Once set up, it can be monitored easily through CloudWatch.Pricing is mod
@exequielrafaela
exequielrafaela / aws_create_users_ubuntu.sh
Created December 17, 2021 14:49 — forked from vasansr/aws_create_users_ubuntu.sh
AWS User Data Script to create users when launching an Ubuntu server EC2 instance
#!/bin/bash
#
# Initial script to create users when launching an Ubuntu server EC2 instance
#
declare -A USERKEY
#
# Create one entry for every user who needs access. Be sure to change the key to their
#!/bin/bash
#### Pre-requisites
## NOTE: You need to install the SSM plugin for the AWS CLI
## https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-working-with-install-plugin.html
#### Variables initialization
PROJECT_SHORT="bb"
FOLDER="le-tf-infra-aws"
COMMON_CONFIG_FILE="$FOLDER/config/common.tfvars"
@exequielrafaela
exequielrafaela / resolvd-switch.sh
Last active July 8, 2022 12:45
Linux mint / ubuntu resolvd switcher bash script
#!/bin/bash
# When using Linux mint/ubuntu Pritunl VPN client and can't resolve endpoints, a solution is to kill resolvd.
# As the whole process is a couple of steps this script will solve it for your.
# It is called with --stop to kill resolvd or with --start to resume the previous state.
# Check if running as root
if [[ $EUID -ne 0 ]]; then
echo "Must be running as root"
exit