herschel666-arc-macros-custom-log-groups

Create log groups for @architect's Lambda functions with a custom RetentionInDays-value.

Usage no npm install needed!

<script type="module">
  import herschel666ArcMacrosCustomLogGroups from 'https://cdn.skypack.dev/herschel666-arc-macros-custom-log-groups';
</script>

README

herschel666-arc-macros-custom-log-groups

Create log groups for @architect's Lambda functions with a custom RetentionInDays-value.

Installation

npm i herschel666-arc-macros-custom-log-groups

Usage

Add the herschel666-arc-macros-custom-log-groups to the list of macros in your .arc-file.

@app
some-app

@macros
herschel666-arc-macros-custom-log-groups

Customization

The default value for RetentionInDays is 14. To change this value, add the @herschel666-arc-macros-custom-log-groups-pragma to your .arc-file and set retentionInDays beneath it.

@app
some-app

@macros
herschel666-arc-macros-custom-log-groups

@herschel666-arc-macros-custom-log-groups
retentionInDays 28

License

MIT @ Emanuel Kluge