Skip to content

Instantly share code, notes, and snippets.

View AguacateVelarde's full-sized avatar
:octocat:
Building the new digital world

Leonardo Velarde AguacateVelarde

:octocat:
Building the new digital world
View GitHub Profile
@AguacateVelarde
AguacateVelarde / Ubuntu 16.04
Created October 10, 2022 02:15 — forked from dhoeric/Ubuntu 16.04
install-docker-aws-ec2-user-data
#!/bin/bash
# Install docker
apt-get update
apt-get install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
apt-get update
@AguacateVelarde
AguacateVelarde / rw_ro_access.sql
Created October 1, 2022 16:46 — forked from checco/rw_ro_access.sql
How to create a read only user in AWS RDS PostgreSQL and a user with superuser privileges on AWS RDS PostgreSQL
--
-- Read only
--
-- Create a group
CREATE ROLE postgres_ro_group;
-- Grant access to existing tables
GRANT USAGE ON SCHEMA public TO postgres_ro_group;
GRANT SELECT ON ALL TABLES IN SCHEMA public TO postgres_ro_group;