You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 13, 2021. It is now read-only.
def getBucketPrefix(bucket_name, bucket_key):
#Figure out prefix from known bucket_name and bucket_key
bucket_prefix = '/'.join(bucket_key.split('/')[:-2])
if len(bucket_prefix) > 0:
bucket_prefix += '/'
return bucket_prefix
All this is fine, but it would be nice if the docs would specify that the value for bucket prefix must have a trailing slash.
I had a problem with the stack where I had set the S3BucketPrefix to vpnconfigs/prefix_
This broke the cisco configurator lambda as it does a string split on "/" and joins on [:-2]. This drops the "prefix_" part.
transit-vpc-push-cicso-config.py@L128
All this is fine, but it would be nice if the docs would specify that the value for bucket prefix must have a trailing slash.