aws-cf-templates
aws-cf-templates copied to clipboard
Adds performance insights to Postgres template
- [x] yamllint state/rds-postgres.yaml
- [x] cfn-lint -i E1019 E3002 E2520 -t state/rds-postgres.yaml
- [x] aws cloudformation validate-template --template-body file://state/rds-postgres.yaml
Added parameters to optionally have performance insights in Postgres RDS, and custom amount of retention days in it.
@andreaswittig could you check the defaults? Is it a good idea to enable by default or will this break existing setups with small instances? Not sure if we should get rid of PerformanceInsights
and turn off if PerformanceInsightsRetentionPeriod
is set to zero.
@O5m4r Thanks a lot for your contribution.
Your solution is very flexible but comes with the disadvantage, that setting PerformanceInsight
to true
will fail for some instance types.
I took a different approach for the wordpress/wordpress-ha
template. My idea was to enable RDS Performance Insights for all supported instance types out of the box. See https://github.com/widdix/aws-cf-templates/pull/490. What do you think?
I like the Idea of having a mapping, to make sure we don't allow Performance Insights in an Instance that doesn't support it.