Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions buckup/bucket_creator.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def create_bucket(self, name, region):
)
)
print()
print("\tAWS_STORAGE_BUCKET_NAME", name)
print(f"AWS_STORAGE_BUCKET_NAME='{name}'")
print()
bucket.wait_until_exists()
return bucket
Expand All @@ -210,8 +210,8 @@ def create_user_access_key_pair(self, user):
)
)
print()
print("\tAWS_ACCESS_KEY_ID", access_key_pair.access_key_id)
print("\tAWS_SECRET_ACCESS_KEY", access_key_pair.secret_access_key)
print(f"AWS_ACCESS_KEY_ID='{access_key_pair.access_key_id}'")
print(f"AWS_SECRET_ACCESS_KEY='{access_key_pair.secret_access_key}'")
print()
return access_key_pair

Expand Down
9 changes: 7 additions & 2 deletions buckup/command_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ def print_welcome_information(self):
| |
|_|
""")
print("Queries: http://github.com/torchbox/buckup\n")
print("Version:", __version__)
print("Issues: http://github.com/torchbox/buckup\n")
print(
"We are going to create an S3 bucket with a user that is ready "
"to use. In the end\nyou will have a bucket name, access key "
Expand Down Expand Up @@ -103,7 +104,6 @@ def print_account_information(self):
if not region:
print('You need to specify region with "--region".')
sys.exit(1)
print('Use "--profile" flag to use a different boto3 profile.')
print(
"Region used is {region}. "
'Use "--region" to specify a different '
Expand Down Expand Up @@ -240,6 +240,11 @@ def execute(self):
self.ask_cors()
self.print_separator()
if self.ask_summary():
self.print_separator()
print(
"Warning: The following information contains sensitive values. "
"Be careful when copying and pasting."
)
self.print_separator()
self.create_bucket()

Expand Down