https://github.com/burgossrodrigo/aurora_clone_iac
https://github.com/burgossrodrigo/aurora_clone_iac
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/burgossrodrigo/aurora_clone_iac
- Owner: burgossrodrigo
- Created: 2024-12-23T18:11:42.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-12-24T09:43:47.000Z (5 months ago)
- Last Synced: 2025-02-14T05:11:38.828Z (3 months ago)
- Language: HCL
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Session manager download
```bash
curl "https://s3.amazonaws.com/session-manager-downloads/plugin/latest/ubuntu_64bit/session-manager-plugin.deb" -o "session-manager-plugin.deb"
```### Install the package
```bash
sudo dpkg -i session-manager-plugin.deb
```### Fix dependencies (if any): If there are dependency errors during installation, run:
```bash
sudo apt-get install -f
```### Verify installation:
```
session-manager-plugin --version
```### Starting session
```bash
aws ssm start-session --target i-0e325b0a22923434f --document-name AWS-StartPortForwardingSessionToRemoteHost --parameters '{"host":["bia.cluster-cf880msq8y91.us-east-1.rds.amazonaws.com"],"portNumber":["5432"],"localPortNumber":["5434"]}' --profile pgsql_admin --region us-east-1
```### Copying the files
```bash
PGPASSWORD="$DB_PASSWORD" psql -h "$DB_HOST" -p "$DB_PORT" -d "$DB_NAME" -U "$DB_USER" -c "\COPY public.\"Tarefas\" FROM 'tarefas.csv' DELIMITER ',' CSV"
```