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
I wrote a policy to configure a lifecycle, but get this error:
botocore.exceptions.ClientError: An error occurred (MalformedXML) when calling the
PutBucketLifecycleConfiguration operation: The XML you provided was not well-formed or did not
validate against our published schema
The policy:
policies:
- name: s3-log-targetsresource: s3filters:
- type: is-log-target# XXX Filter for buckets without a lifecycle expiration rule?actions:
- type: configure-lifecyclerules:
- ID: retention-policyStatus: EnabledExpiration:
Days: 30mode:
type: pull
This does abide by the policy in s3.py, and looks similar to the policy I found in resources.json:
per the docs its not clear Prefix or Filter is required for a rule (required: no in the docs). re the xml, its something thats generated much lower down in the sdk stack (by boto3/botocore) not something custodian has access to directly.
custodian is pretty much straight pass through on the user configuration to the api here, there's very little to no customization that we're doing on a given filter/rule. In this case it appears the service sdk api description and the service actual behavior differ.
I wrote a policy to configure a lifecycle, but get this error:
The policy:
This does abide by the policy in s3.py, and looks similar to the policy I found in
resources.json
:Is there a way to get c7n to emit the XML it's sending to the API?
The text was updated successfully, but these errors were encountered: