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

relaxed bucket names #44

Merged
merged 2 commits into from
Aug 26, 2024
Merged

relaxed bucket names #44

merged 2 commits into from
Aug 26, 2024

Conversation

arttor
Copy link
Collaborator

@arttor arttor commented Aug 26, 2024

closes #42

)

var defaultRegion = "us-east-1"
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think it is a good idea to have a region hard coded.
Even if it is used as fallback.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done, moved to config

_, err = toClient.AWS().CreateBucketWithContext(ctx, &s3.CreateBucketInput{
Bucket: &p.Bucket,
CreateBucketConfiguration: &s3.CreateBucketConfiguration{
LocationConstraint: &defaultRegion,
Copy link
Contributor

Choose a reason for hiding this comment

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

What happens if the default region is empty?

@arttor arttor merged commit 3bdad70 into main Aug 26, 2024
2 checks passed
@arttor arttor deleted the relaxed-bucket-names branch August 26, 2024 14:13
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.

Add an optional flag to relax S3 bucket names check
2 participants