Skip to content

fix(aws-cloudfront): Fix loggingConfig being ignored - #805

Closed
ZeldoKavira wants to merge 8 commits into
aws:masterfrom
ZeldoKavira:fix-cloudfront-s3-logging
Closed

ZeldoKavira wants to merge 8 commits into
aws:masterfrom
ZeldoKavira:fix-cloudfront-s3-logging

Conversation

@ZeldoKavira

@ZeldoKavira ZeldoKavira commented Sep 28, 2018 •

Copy link
Copy Markdown
Contributor

feat(aws-s3): Add support for domainName on BucketRef instead of just Bucket

Fixes #721

Note: I know this goes against the policy of one fix/feature/ect per PR, but the s3 feature was required to complete this PR.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license.

feat(aws-s3): Add support for domainName on BucketRef instead of just Bucket

LoggingConfiguration now requires bucket instead of it being optional. There is no point to including a LoggingConfiguration without a bucket (no-breaking).

Fixes aws#721
@ZeldoKavira

Copy link
Copy Markdown
Contributor Author

@eladb || @rix0rrr Cannot set a reviewer

@rix0rrr

rix0rrr commented Sep 28, 2018

Copy link
Copy Markdown
Contributor

I was ready to approve this, but while fixing up the docstrings I noticed that the intended purpose of bucket being optional was that a logging bucket would be automatically created.

That still seems like desirable behavior to me, so can you make that work? It involves new'ing up an s3.Bucket() on the spot if it happens that the bucket is unset. Probably makes sense to expose loggingBucket?: s3.BucketRef as a public attribute as well, so consumers can access the bucket object afterwards.

@rix0rrr

rix0rrr commented Sep 28, 2018

Copy link
Copy Markdown
Contributor

Oh and apparently I broke something. Sorry! 👀

@ZeldoKavira

Copy link
Copy Markdown
Contributor Author

I will take a look at the auto generation!

rix0rrr and others added 2 commits September 28, 2018 19:53
Blake Price
Fix whitespace errors with S3
Auto generate logging bucket if one is not provided + tests
@ZeldoKavira

ZeldoKavira commented Sep 28, 2018 •

Copy link
Copy Markdown
Contributor Author

@rix0rrr Lets pause this one for a second, found a potential issue with CloudFormation

Blake Price
Export domain name so that it can be referenced by external cloudfronts
@ZeldoKavira

Copy link
Copy Markdown
Contributor Author

@rix0rrr Resolved the issue.

Blake Price added 2 commits September 28, 2018 13:25
@ZeldoKavira

ZeldoKavira commented Sep 28, 2018 •

Copy link
Copy Markdown
Contributor Author

@rix0rrr Fixed merge issue from the other PR being accepted, if possible can you cut a release after this PR is accepted?

@ZeldoKavira

Copy link
Copy Markdown
Contributor Author

I messed up and overlooked export(), reverting to a different branch to keep the commits clean

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.

Logging property not present on creating a Cloudfront distribution using construct

2 participants