Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Bucket when compliance enabled fails #61

Open
kronos2611 opened this issue Dec 10, 2018 · 0 comments
Open

Create Bucket when compliance enabled fails #61

kronos2611 opened this issue Dec 10, 2018 · 0 comments

Comments

@kronos2611
Copy link

We have a requirement to create some namespaces with compliance enabled but I noted when attempting to create buckets in those namespaces using ecsclient an error is returned stating that "Incorrect retention parameter: bucket retention period must be set if retention enforcement is off".

On checking I see that under ecsclient.common.provisioning.bucket the create under the Bucket class does not support specifying retention as specified int he REST API guide for ECS - is there supposed to be another way around this (i.e. am I doing it wrong - probably yes is the answer :) ) As there is a function to alter retention post bucket creation I had assumed that you'd be able to create the bucket and then modify retention but no such luck.

Upon modifying bucket.py to allow for specification of retention the bucket is able to be created successfully and specifying a retention of 0 seems as the default also seems to allow for non-compliance buckets to be created without issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant