Skip to content

Instantly share code, notes, and snippets.

View valerybriz's full-sized avatar
🐍
Writing poetry in Python

Valery Briz valerybriz

🐍
Writing poetry in Python
View GitHub Profile
@valerybriz
valerybriz / rename_table.py
Last active June 1, 2020 23:03 — forked from dan-hook/rename_table.py
"Rename" an AWS Glue table by creating a new table
import boto3
from settings import AWS_PROFILE
database_name = "test"
new_database_name = "newdb"
table_name = "table_name"
new_table_name = "new_table_name"
session = boto3.session.Session(profile_name=AWS_PROFILE)
client = session.client("glue")