-
Notifications
You must be signed in to change notification settings - Fork 21
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
Conversation
providers/aws/resources/aws.lr
Outdated
@@ -1717,7 +1717,7 @@ aws.s3 @defaults("buckets") { | |||
} | |||
|
|||
// Amazon S3 bucket | |||
private aws.s3.bucket @defaults("name location public") { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
providers/aws/resources/aws.lr
Outdated
@@ -1717,7 +1717,7 @@ aws.s3 @defaults("buckets") { | |||
} | |||
|
|||
// Amazon S3 bucket | |||
private aws.s3.bucket @defaults("name location public") { |
There was a problem hiding this comment.
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?
f24d2ed
to
556f14a
Compare
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