sixtyfour icon indicating copy to clipboard operation
sixtyfour copied to clipboard

Keep or ditch locationconstraint for bucket create?

Open sckott opened this issue 1 year ago • 0 comments

With newer version of paws https://github.com/paws-r/paws/issues/900 i had to remove the LocationConstraint param I was using in our bucket create function. I don't know why we originally used it, so perhaps it's not needed anyway, but it's removed on the cookbook-six branch and may merge to dev soon

aws_bucket_create <- function(bucket, ...) {
  bucket_checks(bucket)
  con_s3()$create_bucket(
    Bucket = bucket,
    CreateBucketConfiguration =
      list(LocationConstraint = env_var("AWS_REGION")), ...
  )$Location
}

sckott avatar Feb 20 '25 21:02 sckott