From dd4f948f9dd6affb77df75868e9b0916b72021ab Mon Sep 17 00:00:00 2001 From: Chris Grabosky Date: Fri, 30 Aug 2019 14:54:03 -0400 Subject: [PATCH] s3 support --- Stitch-CLI-Export/services/aws/config.json | 12 ++++++++++++ Stitch-CLI-Export/services/aws/rules/s3.json | 20 ++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100755 Stitch-CLI-Export/services/aws/config.json create mode 100755 Stitch-CLI-Export/services/aws/rules/s3.json diff --git a/Stitch-CLI-Export/services/aws/config.json b/Stitch-CLI-Export/services/aws/config.json new file mode 100755 index 0000000..58a4664 --- /dev/null +++ b/Stitch-CLI-Export/services/aws/config.json @@ -0,0 +1,12 @@ +{ + "id": "5d694e9dd2e96982b0f8e056", + "name": "aws", + "type": "aws", + "config": { + "accessKeyId": "AKIAI6GMF36N3KVD64TA" + }, + "secret_config": { + "secretAccessKey": "awssec" + }, + "version": 1 +} diff --git a/Stitch-CLI-Export/services/aws/rules/s3.json b/Stitch-CLI-Export/services/aws/rules/s3.json new file mode 100755 index 0000000..3b05384 --- /dev/null +++ b/Stitch-CLI-Export/services/aws/rules/s3.json @@ -0,0 +1,20 @@ +{ + "id": "5d694ea4488bf6bc6b56f2e2", + "name": "s3", + "actions": [ + "s3:PutObject", + "s3:PutObjectAcl", + "s3:GetObject", + "s3:GetObjectAcl" + ], + "when": { + "%%true": { + "%function": { + "name": "isValidAdmin", + "arguments": [ + "%%user" + ] + } + } + } +}