Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wider S3 deployment options #85

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

9gel
Copy link

@9gel 9gel commented Mar 12, 2022

  • Set default S3 URL to None for boto, so the library can construct the URL from the region,
    thereby allowing intra-VPC S3 access to work instead of always relying on public URL
  • Set encryption to updated s3v4
  • Use get bucket location as a test for connectivity instead of creating bucket,
    which work work well when there are a lot of workers starting at the same time
  • Better error message when connectivity failed

- Set default S3 URL to None for boto, so the library can construct the URL from the region,
  thereby allowing intra-VPC S3 access to work instead of always relying on public URL
- Set encryption to updated s3v4
- Use get bucket location as a test for connectivity instead of creating bucket,
  which work work well when there are a lot of workers starting at the same time
- Better error message when connectivity failed
@fauxpark fauxpark requested review from skullydazed and a team March 21, 2022 09:45
@@ -41,17 +41,17 @@
endpoint_url=S3_HOST,
aws_access_key_id=S3_ACCESS_KEY,
aws_secret_access_key=S3_SECRET_KEY,
config=botocore.client.Config(signature_version='s3'),
config=botocore.config.Config(signature_version='s3v4')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will be removed in #96

)

# Check to see if S3 is working, and if not print an error in the log.
for bucket in [S3_BUCKET, COMPILE_S3_BUCKET]:
try:
s3.create_bucket(Bucket=bucket)
s3.get_bucket_location(Bucket=bucket)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

create_bucket is needed for qmk_web_stack.

Suggested change
s3.get_bucket_location(Bucket=bucket)
s3.create_bucket(Bucket=bucket)

@tzarc tzarc force-pushed the master branch 2 times, most recently from 0a096f1 to daad9ee Compare November 28, 2023 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants