Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Describe your changes
Getting weird errors when supplying value
engine_version = "15"
│ Error: multiple RDS engine versions ([{ │ DBEngineDescription: "PostgreSQL", │ DBEngineVersionDescription: "PostgreSQL 15.2-R2", │ DBParameterGroupFamily: "postgres15", │ Engine: "postgres", │ EngineVersion: "15.2", │ ExportableLogTypes: ["postgresql","upgrade"], │ MajorEngineVersion: "15", │ Status: "available", │ SupportedCACertificateIdentifiers: [ │ "rds-ca-2019", │ "rds-ca-ecc384-g1", │ "rds-ca-rsa4096-g1", │ "rds-ca-rsa2048-g1" │ ], │ SupportedFeatureNames: ["Lambda","s3Export","s3Import"], │ SupportsBabelfish: false, │ SupportsCertificateRotationWithoutRestart: true, │ SupportsGlobalDatabases: false, │ SupportsIntegrations: false, │ SupportsLocalWriteForwarding: false, │ SupportsLogExportsToCloudwatchLogs: true, │ SupportsParallelQuery: false, │ SupportsReadReplica: true, │ ValidUpgradeTarget: [ │ { │ AutoUpgrade: false, │ Description: "PostgreSQL 15.3-R2", │ Engine: "postgres", │ EngineVersion: "15.3", │ IsMajorVersionUpgrade: false │ }, │ { │ AutoUpgrade: false, │ Description: "PostgreSQL 15.4-R3", │ Engine: "postgres", │ EngineVersion: "15.4", │ IsMajorVersionUpgrade: false │ }, │ { │ AutoUpgrade: false, │ Description: "PostgreSQL 15.5-R1", │ Engine: "postgres", │ EngineVersion: "15.5", │ IsMajorVersionUpgrade: false │ }, │ { │ AutoUpgrade: false, │ Description: "PostgreSQL 16.1-R1", │ Engine: "postgres", │ EngineVersion: "16.1", │ IsMajorVersionUpgrade: true │ } │ ] │ } { │ DBEngineDescription: "PostgreSQL", │ DBEngineVersionDescription: "PostgreSQL 15.3-R2", │ DBParameterGroupFamily: "postgres15", │ Engine: "postgres", │ EngineVersion: "15.3", │ ExportableLogTypes: ["postgresql","upgrade"], │ MajorEngineVersion: "15", │ Status: "available", │ SupportedCACertificateIdentifiers: [ │ "rds-ca-2019", │ "rds-ca-ecc384-g1", │ "rds-ca-rsa4096-g1", │ "rds-ca-rsa2048-g1" │ ], │ SupportedFeatureNames: ["Lambda","s3Export","s3Import"], │ SupportsBabelfish: false, │ SupportsCertificateRotationWithoutRestart: true, │ SupportsGlobalDatabases: false, │ SupportsIntegrations: false, │ SupportsLocalWriteForwarding: false, │ SupportsLogExportsToCloudwatchLogs: true, │ SupportsParallelQuery: false, │ SupportsReadReplica: true, │ ValidUpgradeTarget: [{ │ AutoUpgrade: false, │ Description: "PostgreSQL 15.4-R3", │ Engine: "postgres", │ EngineVersion: "15.4", │ IsMajorVersionUpgrade: false │ },{ │ AutoUpgrade: false, │ Description: "PostgreSQL 15.5-R1", │ Engine: "postgres", │ EngineVersion: "15.5", │ IsMajorVersionUpgrade: false │ },{ │ AutoUpgrade: false, │ Description: "PostgreSQL 16.1-R1", │ Engine: "postgres", │ EngineVersion: "16.1", │ IsMajorVersionUpgrade: true │ }] │ } { │ DBEngineDescription: "PostgreSQL", │ DBEngineVersionDescription: "PostgreSQL 15.4-R3", │ DBParameterGroupFamily: "postgres15", │ Engine: "postgres", │ EngineVersion: "15.4", │ ExportableLogTypes: ["postgresql","upgrade"], │ MajorEngineVersion: "15", │ Status: "available", │ SupportedCACertificateIdentifiers: [ │ "rds-ca-2019", │ "rds-ca-ecc384-g1", │ "rds-ca-rsa4096-g1", │ "rds-ca-rsa2048-g1" │ ], │ SupportedFeatureNames: ["Lambda","s3Export","s3Import"], │ SupportsBabelfish: false, │ SupportsCertificateRotationWithoutRestart: true, │ SupportsGlobalDatabases: false, │ SupportsIntegrations: false, │ SupportsLocalWriteForwarding: false, │ SupportsLogExportsToCloudwatchLogs: true, │ SupportsParallelQuery: false, │ SupportsReadReplica: true, │ ValidUpgradeTarget: [{ │ AutoUpgrade: false, │ Description: "PostgreSQL 15.5-R1", │ Engine: "postgres", │ EngineVersion: "15.5", │ IsMajorVersionUpgrade: false │ },{ │ AutoUpgrade: false, │ Description: "PostgreSQL 16.1-R1", │ Engine: "postgres", │ EngineVersion: "16.1", │ IsMajorVersionUpgrade: true │ }] │ } { │ DBEngineDescription: "PostgreSQL", │ DBEngineVersionDescription: "PostgreSQL 15.5-R1", │ DBParameterGroupFamily: "postgres15", │ Engine: "postgres", │ EngineVersion: "15.5", │ ExportableLogTypes: ["postgresql","upgrade"], │ MajorEngineVersion: "15", │ Status: "available", │ SupportedCACertificateIdentifiers: [ │ "rds-ca-2019", │ "rds-ca-ecc384-g1", │ "rds-ca-rsa4096-g1", │ "rds-ca-rsa2048-g1" │ ], │ SupportedFeatureNames: ["Lambda","s3Export","s3Import"], │ SupportsBabelfish: false, │ SupportsCertificateRotationWithoutRestart: true, │ SupportsGlobalDatabases: false, │ SupportsIntegrations: false, │ SupportsLocalWriteForwarding: false, │ SupportsLogExportsToCloudwatchLogs: true, │ SupportsParallelQuery: false, │ SupportsReadReplica: true, │ ValidUpgradeTarget: [{ │ AutoUpgrade: false, │ Description: "PostgreSQL 16.1-R1", │ Engine: "postgres", │ EngineVersion: "16.1", │ IsMajorVersionUpgrade: true │ }] │ }]) match the criteria │ │ with module.rds_instance_test.data.aws_rds_engine_version.default, │ on ../../data.tf line 1, in data "aws_rds_engine_version" "default": │ 1: data "aws_rds_engine_version" "default" {
This has been fixed in previous version. Therefore reverting the change. Another benefit from using the previous version was it clearly stated what the expected value in engine version would in the plan. Not after apply!
``
Issue ticket number and link
bug found during testing
Checklist before requesting a review
- [ ] I have added the needed changes in thetest/qa
folder to apply my changes in QA.Is it a new release?
release:(major|minor|patch)
, following semantic versioning in this guide ornorelease
if there is no changes to the Terraform code