{"action":"created","issue":{"url":"https://api.github.com/repos/cloudyr/aws.s3/issues/218","repository_url":"https://api.github.com/repos/cloudyr/aws.s3","labels_url":"https://api.github.com/repos/cloudyr/aws.s3/issues/218/labels{/name}","comments_url":"https://api.github.com/repos/cloudyr/aws.s3/issues/218/comments","events_url":"https://api.github.com/repos/cloudyr/aws.s3/issues/218/events","html_url":"https://github.com/cloudyr/aws.s3/issues/218","id":308736926,"number":218,"title":"403 forbidden on delete_object() - question about package functionality","user":{"login":"bheavner","id":2286965,"avatar_url":"https://avatars2.githubusercontent.com/u/2286965?v=4","gravatar_id":"","url":"https://api.github.com/users/bheavner","html_url":"https://github.com/bheavner","followers_url":"https://api.github.com/users/bheavner/followers","following_url":"https://api.github.com/users/bheavner/following{/other_user}","gists_url":"https://api.github.com/users/bheavner/gists{/gist_id}","starred_url":"https://api.github.com/users/bheavner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bheavner/subscriptions","organizations_url":"https://api.github.com/users/bheavner/orgs","repos_url":"https://api.github.com/users/bheavner/repos","events_url":"https://api.github.com/users/bheavner/events{/privacy}","received_events_url":"https://api.github.com/users/bheavner/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-26T21:11:21Z","updated_at":"2018-03-27T08:50:33Z","closed_at":"2018-03-26T21:16:05Z","author_association":"NONE","body":"I'm just starting to play with aws.s3, and am gettin a 403/forbidden error when I try to delete an object I've just put in a bucket. Should I be configuring permissions somehow (or differently)?\r\n\r\n```R\r\n## load package\r\nlibrary(\"aws.s3\")\r\n\r\n# use default account credentials in ~/.aws/credentials\r\naws.signature::use_credentials()\r\n\r\n# check credentials by listing buckets\r\nbucketlist()\r\n\r\n# create bucket in us-west-2\r\nb <- put_bucket(\"bh-s3-r\", region = \"us-west-2\")\r\n\r\nget_bucket(\"bh-s3-r\")\r\n\r\n# put local file into S3\r\n# ( file is \"./small_ranges/part-00000-a73dc03a-03bc-401d-ba01-514cc8cc6b18-c000.snappy.parquet\")\r\nto_upload <- paste0(\"./small_ranges/\", dir(\"./small_ranges\")[[2]])\r\nput_object(file = to_upload, bucket = \"bh-s3-r\")\r\n\r\nget_bucket(\"bh-s3-r\")\r\n\r\n# cleanup\r\ndelete_object(object = to_upload, bucket = \"bh-s3-r\") # forbidden\r\nClient error: (403) Forbidden\r\n```\r\n\r\n````R\r\n> sessionInfo()\r\nR version 3.4.3 (2017-11-30)\r\nPlatform: x86_64-apple-darwin15.6.0 (64-bit)\r\nRunning under: macOS Sierra 10.12.6\r\n\r\nMatrix products: default\r\nBLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib\r\nLAPACK: /Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libRlapack.dylib\r\n\r\nlocale:\r\n[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8\r\n\r\nattached base packages:\r\n[1] stats     graphics  grDevices utils     datasets  methods   base     \r\n\r\nother attached packages:\r\n [1] aws.s3_0.3.3    sparklyr_0.7.0  bindrcpp_0.2    forcats_0.3.0   stringr_1.3.0   dplyr_0.7.4     purrr_0.2.4     readr_1.1.1     tidyr_0.8.0    \r\n[10] tibble_1.4.2    ggplot2_2.2.1   tidyverse_1.2.1\r\n\r\nloaded via a namespace (and not attached):\r\n [1] Rcpp_0.12.15        lubridate_1.7.2     lattice_0.20-35     assertthat_0.2.0    rprojroot_1.3-2     digest_0.6.15       psych_1.7.8        \r\n [8] utf8_1.1.3          aws.signature_0.3.5 mime_0.5            R6_2.2.2            cellranger_1.1.0    plyr_1.8.4          backports_1.1.2    \r\n[15] RSQLite_2.0         httr_1.3.1          pillar_1.1.0        rlang_0.2.0         curl_3.1            lazyeval_0.2.1      readxl_1.0.0       \r\n[22] rstudioapi_0.7      blob_1.1.0          config_0.2          foreign_0.8-69      bit_1.1-12          munsell_0.4.3       shiny_1.0.5        \r\n[29] broom_0.4.3         compiler_3.4.3      httpuv_1.3.5        modelr_0.1.1        pkgconfig_2.0.1     base64enc_0.1-3     mnormt_1.5-5       \r\n[36] htmltools_0.3.6     openssl_1.0         withr_2.1.1         crayon_1.3.4        dbplyr_1.2.1        rappdirs_0.3.1      grid_3.4.3         \r\n[43] nlme_3.1-131        jsonlite_1.5        xtable_1.8-2        gtable_0.2.0        DBI_0.7             magrittr_1.5        scales_0.5.0       \r\n[50] cli_1.0.0           stringi_1.1.6       reshape2_1.4.3      xml2_1.2.0          tools_3.4.3         bit64_0.9-7         glue_1.2.0         \r\n[57] hms_0.4.1           parallel_3.4.3      yaml_2.1.16         colorspace_1.3-2    rvest_0.3.2         memoise_1.1.0       bindr_0.1          \r\n[64] haven_1.1.1        \r\n```"},"comment":{"url":"https://api.github.com/repos/cloudyr/aws.s3/issues/comments/376446707","html_url":"https://github.com/cloudyr/aws.s3/issues/218#issuecomment-376446707","issue_url":"https://api.github.com/repos/cloudyr/aws.s3/issues/218","id":376446707,"user":{"login":"leeper","id":3505428,"avatar_url":"https://avatars3.githubusercontent.com/u/3505428?v=4","gravatar_id":"","url":"https://api.github.com/users/leeper","html_url":"https://github.com/leeper","followers_url":"https://api.github.com/users/leeper/followers","following_url":"https://api.github.com/users/leeper/following{/other_user}","gists_url":"https://api.github.com/users/leeper/gists{/gist_id}","starred_url":"https://api.github.com/users/leeper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leeper/subscriptions","organizations_url":"https://api.github.com/users/leeper/orgs","repos_url":"https://api.github.com/users/leeper/repos","events_url":"https://api.github.com/users/leeper/events{/privacy}","received_events_url":"https://api.github.com/users/leeper/received_events","type":"User","site_admin":false},"created_at":"2018-03-27T08:50:32Z","updated_at":"2018-03-27T08:50:32Z","author_association":"OWNER","body":"Have you tried using `get_bucket_policy()` to see what permissions you have on the bucket?"}}
{"actor":{"display_login":"leeper"}}