sixtyfour
sixtyfour copied to clipboard
Keep or ditch locationconstraint for bucket create?
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
}