質問編集履歴
3
質問内容の修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -12,7 +12,6 @@
|
|
12
12
|
})
|
13
13
|
```
|
14
14
|
という感じで output_location にサブフォルダのパスを渡したところ
|
15
|
-
output_location を設定して権限を付与しても
|
16
15
|
|
17
16
|
`Aws::Athena::Errors::InvalidRequestException (Unable to verify/create output bucket aws-athena-query-results`
|
18
17
|
|
@@ -20,9 +19,6 @@
|
|
20
19
|
|
21
20
|
IAMで一時的にS3全権限を与えてみたのですがダメでした
|
22
21
|
|
23
|
-
output_location をバケット名だけにすれば動くのですが
|
24
|
-
サブフォルダに分けるのは無理なのでしょうか
|
25
|
-
ユーザや環境ごとにS3のトップにバケットがちらばるのでできれば1バケットで管理したいのですが…
|
26
22
|
```
|
27
23
|
{
|
28
24
|
"Effect": "Allow",
|
@@ -33,4 +29,8 @@
|
|
33
29
|
"*"
|
34
30
|
]
|
35
31
|
},
|
36
|
-
```
|
32
|
+
```
|
33
|
+
|
34
|
+
output_location をバケット名だけにすれば動くのですが
|
35
|
+
サブフォルダに分けるのは無理なのでしょうか
|
36
|
+
ユーザや環境ごとにS3のトップにバケットがちらばるのでできれば1バケットで管理したいのですが…
|
2
質問内容の修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,7 +1,10 @@
|
|
1
1
|
Athena を ruby(Rails) から aws-sdk-athena というジェムを使っているのですが
|
2
2
|
|
3
3
|
```
|
4
|
+
query = 'select * from test_table limit 10'
|
5
|
+
athena_client = Aws::Athena::Client.new
|
6
|
+
|
4
|
-
response =
|
7
|
+
response = athena_client.start_query_execution({
|
5
8
|
query_string: query,
|
6
9
|
result_configuration: {
|
7
10
|
output_location: 's3://aws-athena-query-results/dev/'
|
1
質問内容の修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
|
16
16
|
といわれます
|
17
17
|
|
18
|
-
IAMで
|
18
|
+
IAMで一時的にS3全権限を与えてみたのですがダメでした
|
19
19
|
|
20
20
|
output_location をバケット名だけにすれば動くのですが
|
21
21
|
サブフォルダに分けるのは無理なのでしょうか
|