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::DocDB::DBCluster.EngineVersion AllowedValues expansion (4.0) #1810

Merged
merged 2 commits into from
Nov 30, 2020

Conversation

troyfactor4
Copy link
Contributor

@troyfactor4 troyfactor4 commented Nov 30, 2020

*Issue #, if available: #50

*Description of changes: Adds DocumentDB 4.0 to the allowed Engine types

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@PatMyron PatMyron changed the title fix: add DocumentDB 4.0 compatibility AWS::DocDB::DBCluster.EngineVersion AllowedValues expansion (4.0) Nov 30, 2020
@kddejong
Copy link
Contributor

@troyfactor4 if you make the change here https://github.com/aws-cloudformation/cfn-python-lint/blob/master/src/cfnlint/data/ExtendedSpecs/all/03_value_types.json#L166-L170 we can do the rest of the changes you made. We use JSON patching to patch in the values to the specs as we do the update.

@PatMyron
Copy link
Contributor

@PatMyron PatMyron added the good first issue Good for newcomers label Nov 30, 2020
@troyfactor4
Copy link
Contributor Author

@kddejong - gotcha. Figured there had to be a better way. There it is.

@PatMyron - yeah I've been using "4.0" in a few scripts over the last few days and it works. Documented here: "https://docs.aws.amazon.com/documentdb/latest/developerguide/compatibility.html#compatibility-getstarted"

@troyfactor4
Copy link
Contributor Author

@PatMyron - just checked out the page you linked on 4.0.0. Interesting, I wonder if both values work?

@PatMyron
Copy link
Contributor

PatMyron commented Nov 30, 2020

@PatMyron - just checked out the page you linked on 4.0.0. Interesting, I wonder if both values work?

Yeah both of these deployed successfully, so maybe add both:

Resources:
  DocDBDBCluster:
    Type: AWS::DocDB::DBCluster
    Properties:
      MasterUsername: MasterUsername
      MasterUserPassword: MasterUserPassword
      EngineVersion: 4.0.0
Resources:
  DocDBDBCluster:
    Type: AWS::DocDB::DBCluster
    Properties:
      MasterUsername: MasterUsername
      MasterUserPassword: MasterUserPassword
      EngineVersion: 4.0

@troyfactor4
Copy link
Contributor Author

Done. I've reverted all of those initial changes and added both "4.0" and 4.0.0" to the json patching file.

@PatMyron PatMyron merged commit f90768d into aws-cloudformation:master Nov 30, 2020
@troyfactor4 troyfactor4 deleted the docdb_4.0 branch November 30, 2020 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants