Skip to content
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] - [Docs] - CfnReplicationGroup cluster mode is missing types #2256

Open
khushail opened this issue Feb 10, 2025 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@khushail
Copy link

Name of the resource

AWS::ElastiCache::ReplicationGroup

Resource name

No response

Reference Link

Original issue - aws/aws-cdk#33365

Details

The clusterMode property of the CfnReplicationGroup component should not be a plain string type, but 'enabled' | 'disabled' | undefined. The documentation (incorrectly?) lists the valid options for this property as Disabled or Enabled, with a capital D/E, which causes problems when you try to deploy, such as incorrectly triggering Cluster 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 would avoid this issue entirely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant