diff --git a/src/cfnlint/rules/resources/updatepolicy/Configuration.py b/src/cfnlint/rules/resources/updatepolicy/Configuration.py index 7556d1b234..d11e5032a3 100644 --- a/src/cfnlint/rules/resources/updatepolicy/Configuration.py +++ b/src/cfnlint/rules/resources/updatepolicy/Configuration.py @@ -94,7 +94,8 @@ class Configuration(CloudFormationLintRule): 'EnableVersionUpgrade': { 'PrimitiveType': 'Boolean', 'ResourceTypes': [ - 'AWS::Elasticsearch::Domain' + 'AWS::Elasticsearch::Domain', + 'AWS::OpenSearchService::Domain' ] }, 'UseOnlineResharding': { diff --git a/test/fixtures/templates/good/resources/updatepolicy/config.yaml b/test/fixtures/templates/good/resources/updatepolicy/config.yaml index cdc9f5d216..6ee714972d 100644 --- a/test/fixtures/templates/good/resources/updatepolicy/config.yaml +++ b/test/fixtures/templates/good/resources/updatepolicy/config.yaml @@ -87,3 +87,11 @@ Resources: Type: AWS::Elasticsearch::Domain UpdatePolicy: EnableVersionUpgrade: true + OSD1: + Type: AWS::OpenSearchService::Domain + UpdatePolicy: + EnableVersionUpgrade: false + OSD2: + Type: AWS::OpenSearchService::Domain + UpdatePolicy: + EnableVersionUpgrade: true