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

[New Template] state/documentdb - DocumentDB cluster #449

Merged
merged 7 commits into from
Jun 24, 2020

Conversation

michaelwittig
Copy link
Contributor

@michaelwittig michaelwittig commented Jun 15, 2020

No description provided.

Type: 'AWS::DocDB::DBCluster'
Properties:
AvailabilityZones:
- {'Fn::ImportValue': !Sub '${ParentVPCStack}-AZA'}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the impact of deploying to two AZs only?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I improved the template to use all available AZs

MinValue: 1
MaxValue: 35
Default: 30
DBClusterParameterGroupName:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about adding a AWS::DocDB::DBClusterParameterGroup resource as well? Might be interesting to be able to modify the change_stream_log_retention_duration, for example. (see https://docs.aws.amazon.com/documentdb/latest/developerguide/cluster_parameter_groups-list_of_parameters.html)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done :)

KmsKeyId: !If [HasParentKmsKeyStack, {'Fn::ImportValue': !Sub '${ParentKmsKeyStack}-KeyId'}, !Ref 'AWS::NoValue']
MasterUsername: !Ref MasterUsername
MasterUserPassword: !Ref MasterUserPassword
Port: 27017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

may be parametrize ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done :)

DBSubnetGroupName: !Ref DBSubnetGroup
EnableCloudwatchLogsExports:
- audit
EngineVersion: '3.6.0'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

future version will change having a parameter with 3.6.0 as default

@michaelwittig michaelwittig merged commit f49eca5 into master Jun 24, 2020
@michaelwittig michaelwittig deleted the documentdb branch June 24, 2020 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants