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

🧹 improve aws s3 buckets resource #4620

Merged
merged 1 commit into from
Sep 16, 2024
Merged

🧹 improve aws s3 buckets resource #4620

merged 1 commit into from
Sep 16, 2024

Conversation

vjeffrey
Copy link
Contributor

i also wanted to switch to using HeadBucket to get the location but the api apparently requires that api to be called for the correct region to get a response, so it ends up being more api calls to do so

Copy link
Contributor

github-actions bot commented Aug 30, 2024

Test Results

3 099 tests  ±0   3 098 ✅ ±0   1m 28s ⏱️ +8s
  370 suites ±0       1 💤 ±0 
   28 files   ±0       0 ❌ ±0 

Results for commit 556f14a. ± Comparison against base commit 839eff8.

♻️ This comment has been updated with latest results.

@@ -1717,7 +1717,7 @@ aws.s3 @defaults("buckets") {
}

// Amazon S3 bucket
private aws.s3.bucket @defaults("name location public") {
Copy link
Member

Choose a reason for hiding this comment

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

Is there to do this without losing the location?

Copy link
Contributor Author

@vjeffrey vjeffrey Aug 30, 2024

Choose a reason for hiding this comment

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

unfortunately i dont think so..
:/

if aws returned the region on the list response this wouldnt be a problem, the extra api call is annoying

Copy link
Member

Choose a reason for hiding this comment

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

Could we derive the location from the arn?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

unfortunately it's not in the arn for s3. i could also remove the location change stuff and just leave the rest of the optimization in

Copy link
Contributor Author

Choose a reason for hiding this comment

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

chatted with tim, im gonna bring back the location by default part

@@ -1717,7 +1717,7 @@ aws.s3 @defaults("buckets") {
}

// Amazon S3 bucket
private aws.s3.bucket @defaults("name location public") {
Copy link
Member

Choose a reason for hiding this comment

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

Could we derive the location from the arn?

@vjeffrey vjeffrey merged commit da118d0 into main Sep 16, 2024
15 checks passed
@vjeffrey vjeffrey deleted the vj/improves3 branch September 16, 2024 19:41
@github-actions github-actions bot locked and limited conversation to collaborators Sep 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants