Commit graph

5 commits

Author SHA1 Message Date
Gavin Williams
d72ae6a5da
Fix issue when attempting to set create_proxy = false
Spotted this issue whilst trying to integrate this module into some existing code where we don't always want to create a RDS Proxy instance, but when we are creating a proxy we want a default set of endpoints.

Setting `create_proxy = false` works for the majority of resources, however the `aws_db_proxy_endpoint` resource uses a `for_each` which will try and create endpoints against a non-existent DB proxy.

So switch to using a `local` which gets set to an empty map if `var.create_proxy` is false.
2022-08-09 16:17:04 +01:00
Bryant Biggs
affe754727 fix: remove un-used variables and update linting checks to ensure this is catched in the future 2021-11-17 08:04:41 -05:00
Bryant Biggs
3550f1bd9c BREAKING CHANGE: add new resource aws_db_proxy_endpoint for generating proxy endpoints from a dynamic map of inputs (#5) 2021-05-08 17:41:06 -04:00
Bryant Biggs
646b0428d4 fix: remove restriction that debug logging must be enabled in order to manage the proxy log group 2021-01-06 20:10:11 -05:00
Bryant Biggs
402de162e6 feat: initial release of terraform-aws-rds-proxy 🎉 2021-01-04 20:10:46 -05:00