Elasticache.CfnParameterGroup cannot be initialized with a parameter_group_name #8180
Labels
@aws-cdk/aws-elasticache
Related to Amazon ElastiCache
bug
This issue is a bug.
closed-for-staleness
This issue was automatically closed because it hadn't received any attention in a while.
effort/small
Small work item – less than a day of effort
needs-cfn
This issue is waiting on changes to CloudFormation before it can be addressed.
I wanted to initialize an
Elasticache.CfnCacheCluster
with a specificElasticache.CfnParameterGroup
.Elasticache.CfnCacheCluster
has an optional init parameter calledcache_parameter_group_name
. However,Elasticache.CfnParameterGroup
does not allow defining its name in its initialization. Furthermore, it does not have an attribute calledparameter_group_name
, which would be intuitive.Not being able to define
parameter_group_name
results in having a gibberish name visible in AWS Console under the view: Elasticache > Parameter Groups.It also makes the initialization of
Elasticache.CfnCacheCluster
with aElasticache.CfnParameterGroup
very unintuitive.Reproduction Steps
Workaround for inputting into CfnCacheCluster:
One needs to figure out that
.ref
resolves to the nameWhich with further digging resolves to
so
cache_parameter_group_name=redis_parameter_group.ref
works
Environment
Suggestion
Elasticache.CfnParameterGroup
should takeparameter_group_name
in its initialization, and it should be a callable attribute.This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: