You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A reproducible test case or series of steps
Easy. Just use any recent version of rdk to deploy or create_rule_template and take note of the AWS Config Rule "Name" value. It is not what is configured in the parameters.json file under the Parameters.RuleName field as expected but the actual directory name it discovers the file within
Any modifications you've made relevant to the bug
None
Anything unusual about your environment or deployment
None, this will occur in a stock, clean build environment
Suggestion
Extend a method that is used to actually read the configured RuleName value from the parameters.json file during Resource instance creation, rather than the directory name.
It would be nice to use that name consistently throughout the framework however I can see it is used and referenced heavily throughout as an index for many other mappings so it's probably easiest to just perform this step at some point where it parses the JSON config and generate a new class property to capture/hold this PublishedRuleName or something akin
The text was updated successfully, but these errors were encountered:
julienbonastre
changed the title
Bug - Not honouring parameters configuration file for generated Config Rule Resource Names
Not honouring parameters configuration file for generated Config Rule Resource Names
Apr 17, 2023
Before implementing a change like this, I'm curious why it's necessary. rdk create's default behavior is to match the rule name and directory name. In the use case where they're different, why should the parameters.json value be "truthier" than the directory name?
Problem
Easy. Just use any recent version of
rdk
todeploy
orcreate_rule_template
and take note of the AWS Config Rule "Name" value. It is not what is configured in theparameters.json
file under theParameters.RuleName
field as expected but the actual directory name it discovers the file withinThis can be clearly seen in the source:
aws-config-rdk/rdk/rdk.py
Lines 3319 to 3328 in ff944bc
The version of our code being used
This is seen in latest: https://github.com/awslabs/aws-config-rdk/releases/tag/0.12.0 but no doubt extends for the lifespan of this solution
Any modifications you've made relevant to the bug
None
Anything unusual about your environment or deployment
None, this will occur in a stock, clean build environment
Suggestion
Extend a method that is used to actually read the configured RuleName value from the parameters.json file during Resource instance creation, rather than the directory name.
It would be nice to use that name consistently throughout the framework however I can see it is used and referenced heavily throughout as an index for many other mappings so it's probably easiest to just perform this step at some point where it parses the JSON config and generate a new class property to capture/hold this
PublishedRuleName
or something akinThe text was updated successfully, but these errors were encountered: