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

Missing RDS Engine Types: db2-ae and db2-se #3138

Closed
CajuCLC opened this issue Apr 9, 2024 · 2 comments
Closed

Missing RDS Engine Types: db2-ae and db2-se #3138

CajuCLC opened this issue Apr 9, 2024 · 2 comments

Comments

@CajuCLC
Copy link
Contributor

CajuCLC commented Apr 9, 2024

CloudFormation Lint Version

cfn-lint 0.86.2

What operating system are you using?

Windows

Describe the bug

When using cfn-lint to validate AWS CloudFormation templates, the tool fails to recognize db2-ae and db2-se as valid RDS engine types, leading to incorrect validation errors.

cfn-lint --template .\rdsdb2.yml                         
W2031 You must specify a valid Default value for pEngine (db2-se). Valid values must match pattern Has to be one of [aurora, aurora-mysql, aurora-postgresql, mariadb, mysql, oracle-ee, oracle-ee-cdb, oracle-se2, oracle-se2-cdb, oracle-se1, oracle-se, postgres, sqlserver-ee, sqlserver-se, sqlserver-ex, sqlserver-web]
.\rdsdb2.yml:6:5

W2031 You must specify a valid allowed value for pEngine (db2-ae). Valid values must match pattern Has to be one of [aurora, aurora-mysql, aurora-postgresql, mariadb, mysql, oracle-ee, oracle-ee-cdb, oracle-se2, oracle-se2-cdb, oracle-se1, oracle-se, postgres, sqlserver-ee, sqlserver-se, sqlserver-ex, sqlserver-web]
.\rdsdb2.yml:10:9

W2031 You must specify a valid allowed value for pEngine (db2-se). Valid values must match pattern Has to be one of [aurora, aurora-mysql, aurora-postgresql, mariadb, mysql, oracle-ee, oracle-ee-cdb, oracle-se2, oracle-se2-cdb, oracle-se1, oracle-se, postgres, sqlserver-ee, sqlserver-se, sqlserver-ex, sqlserver-web]
.\rdsdb2.yml:11:9

Expected behavior

cfn-lint should recognize db2-ae and db2-se as valid RDS engine types without error.

Reproduction template

AWSTemplateFormatVersion: 2010-09-09
Description: RDS DB2 CloudFormation

Parameters:
  pEngine:
    Default: db2-se
    Description: The database engine
    Type: String
    AllowedValues:
      - db2-ae
      - db2-se

Resources:
  rDBInstance:
    Type: AWS::RDS::DBInstance
    Properties:
      Engine: !Ref pEngine
      ...
@CajuCLC
Copy link
Contributor Author

CajuCLC commented Apr 9, 2024

I created the PR with changes. After making the changes on my local, no more errors:

cfn-lint --template .\rdsdb2.yml --format json
[]

@kddejong
Copy link
Contributor

This has been released.

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

No branches or pull requests

2 participants