-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws-elasticache: CfnReplicationGroup cluster mode is missing types #33365
Comments
Hi @nickdnk , thanks for reporting this. I checked API reference for ElasticCache, which mentions about ClusterMode values to be with lowercase as this -
which looks to be different from what's mentioned in Cloudformation docs - IMO, this could be corrected to avoid confusion when setting the values. Since this is reg. the Cfn construct level documentation, this would need to be handled by cloudformation team. I would be filing issue with them and you could track that for updates. Thanks. |
@nickdnk , issue created with Cloudformation team for doc update -aws-cloudformation/cloudformation-coverage-roadmap#2256 |
Hello I would still argue that the type constraint issue belongs in this repo: It should not be a plain string when it only accepts a small set of enumerated values, such as enabled, disabled and compatible. Edit: Okay, maybe that is already what's happening here. If so, then cool. |
Describe the issue
Hello
The
clusterMode
property of theCfnReplicationGroup
component should not be a plain string type, but'enabled' | 'disabled' | undefined
. The documentation (incorrectly?) lists the valid options for this property asDisabled
orEnabled
, with a capital D/E, which causes problems when you try to deploy, such as incorrectly triggeringCluster mode updates are not supported while attempting to update additional properties
. If you instead change to lower-case typing in the CDK, it seems to work as expected. This is described in this thread as well.So it seems that https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-clustermode is either incorrect or that the output produced by the CDK is different from its input (i.e. lowercase in CDK but titelcase in the API).
Either way, correctly typing this in the CDK would avoid this issue entirely.
Links
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-clustermode
The text was updated successfully, but these errors were encountered: