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

s3 toggle-logging action - append '/' to the default target_prefix (#1464) #1468

Merged
merged 1 commit into from Aug 10, 2017

Conversation

seth-carroll
Copy link
Contributor

Verified the change locally

Copy link
Collaborator

@alfredgamulo alfredgamulo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense; LGTM

@kapilt
Copy link
Collaborator

kapilt commented Aug 9, 2017

hmmm.. slash here would result in double slash in keys? ie. what is the goal and effect of this change? when i did a trailing slash in inventory it had unexpected results. going through our unit tests i do see a slash on log prefixes though, just want to be clear on the reasons for the change.

@kapilt
Copy link
Collaborator

kapilt commented Aug 9, 2017

ah.. actual reason for change is described in #1464

@seth-carroll
Copy link
Contributor Author

seth-carroll commented Aug 9, 2017

Yes, sorry - should have put that in the PR message as well. Currently the slash is missing from the prefix, so the log objects get written directly into the root of the logging destination bucket.

Example action:

    actions:
      - type: toggle-logging
        target_bucket: my-logging-bucket

Results in log objects like this:

s3://my-logging-bucket/my-source-bucket2017-08-07-17-22-28-D5813C87E6C5A11F

Copy link
Collaborator

@kapilt kapilt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, lgtm

@kapilt kapilt merged commit b78778d into cloud-custodian:master Aug 10, 2017
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

Successfully merging this pull request may close these issues.

None yet

3 participants