aws-cloudformation / aws-cloudformation-resource-providers-logs

The CloudFormation Resource Provider Package For Amazon CloudWatch Logs
https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/WhatIsCloudWatchLogs.html
Apache License 2.0
33 stars 35 forks source link

Add KmsKeyId to LogGroup #27

Closed benbridts closed 4 years ago

benbridts commented 4 years ago

~This is a Work in Progress, if that's better as an issue, let me know.~

I tried to tackle the difficult parts first, which for me besides the whole of Java is writing test. I haven't started writing code yet. Assistance with both parts is very welcome.

I'm opening this PR mainly to get feedback on the approach. Currently I have the following questions related to the work already in here:

I also have question for the work that isn't in here yet:

We should probably decide on the best approach before writing the code.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

rjlohan commented 4 years ago

Not super important, but you can do 'Draft' PRs to signal WIP. We can review them entirely, but they're not merge-able.

benbridts commented 4 years ago

Current blocked from (easily/comfortably) writing the implementation by #25 (and a little bit by #28, but I got that working locally by pulling in #29 )

rjlohan commented 4 years ago

If you merge from master, you'll get a Travis build for this PR from now on. 👍

Also, to be consistent with other repos, I updated the space indenting for JSON files from 4-->2 so you'll need to run pre-commit run --all to fix the schema file after rebasing/merging.

rjlohan commented 4 years ago

@ikben how's this PR going?

benbridts commented 4 years ago

I didn't get to pulling in the recent changes yet, hopefully I will have some time to look at it in the next few days

benbridts commented 4 years ago

I think this is what the implementation would look like. Please note:

benbridts commented 4 years ago

I rewrote a few if statements and added a bunch of tests to get the required coverage.

The issue about having model properties that can be null is still open, but I'll wait on feedback for the best approach there

Lukas-Franz commented 4 years ago

Thanks for the implementation! We've just tested this out and it seems not to be in production as of yet.

A bit of topic, but important nonethelss: Is there a way to get notified or keep track of changes like these as they make their way through quality assurance and to production? As far as I'm aware, the only way right now is trial and error, which is quite frustrating.

benbridts commented 4 years ago

@OfficialTermi