Skip to content

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 a team and skullydazed March 21, 2022 09:45
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

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