Commit fccb71ec authored by Yunhua Koglin's avatar Yunhua Koglin
Browse files

update

parent 18491496
......@@ -12,5 +12,5 @@
# See the License for the specific language governing permissions and
# limitations under the License.
__version__ = '1.0.2'
__version__ = '2.0.2'
......@@ -65,7 +65,12 @@ class AwsStorage(BlobStorageBase):
"s3:ListBucketVersions",
"s3:ListBucket"
],
'Resource': ["arn:aws:s3:::%s" % bucket ]
'Resource': ["arn:aws:s3:::%s" % bucket ],
'Condition': {
'StringEquals': {
"s3:prefix": "%s/" % keypath
}
}
},
{
'Sid': 'Two',
......@@ -75,7 +80,12 @@ class AwsStorage(BlobStorageBase):
"s3:GetObject",
"s3:PutObject"
],
'Resource': ["arn:aws:s3:::%s/*" % bucket ]
'Resource': ["arn:aws:s3:::%s/*" % bucket ],
'Condition': {
'StringEquals': {
"s3:prefix": "%s/" % keypath
}
}
},
{
'Sid': "Three",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment