Closed jaymecd closed 4 years ago
Master has nco
already on service.resources: https://github.com/ArtificerEntertainment/serverless-plugin-log-retention/blob/master/add-log-retention.js#L38
services.resources can be an Array as well as an Object. Can I suggest rather than trying to merge via resources.Resources, you just use the compiledCloudFormationTemplate object to modify the LogGroup directly?
Thanks Doug!
@ArtificerEntertainment is there an issue or PR which addresses @dougmoscrop solution?
Cause the problem remains unsolved while there is no resources
block in yaml file.
This PR fixes following problem:
Log group retention remains Never as CFN is not aware of
AWS::Logs::LogGroup
resource, ifserverless.yml
file does not haveresources
defined.As a workaround
serverless.yml
must have empty block, which is not very convenient to have: