-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add uuid as a dependency * utility lib with shared helper functions * improve readme * improve gitignore * use shared helper functions on list-buckets spec * add docs dir on pythonpath for the page generation script * new specification: unique-bucket * include new executions on the index
- Loading branch information
Showing
11 changed files
with
545 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
docs/.ipynb_checkpoints/ | ||
docs/__pycache__/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
# Latest Executed Specifications | ||
|
||
- [unique-bucket-name with br-ne1 params](./unique-bucket-name_params_br-ne1.md) | ||
- [unique-bucket-name with br-se1 params](./unique-bucket-name_params_br-se1.md) | ||
- [list-buckets with br-ne1 params](./list-buckets_params_br-ne1.md) | ||
- [list-buckets with br-se1 params](./list-buckets_params_br-se1.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import boto3 | ||
import datetime | ||
import uuid | ||
|
||
def print_timestamp(): | ||
print(f'execution started at {datetime.datetime.now()}') | ||
|
||
def create_s3_client(profile_name): | ||
session = boto3.Session(profile_name=profile_name) | ||
return session.client('s3') | ||
|
||
def generate_unique_bucket_name(base_name="my-unique-bucket"): | ||
unique_id = uuid.uuid4().hex[:6] # Short unique suffix | ||
return f"{base_name}-{unique_id}" |
Oops, something went wrong.