diff --git a/.changelog/27892.txt b/.changelog/27892.txt new file mode 100644 index 00000000000..aa5d5148a90 --- /dev/null +++ b/.changelog/27892.txt @@ -0,0 +1,3 @@ +```release-note:enhancement +data-source/aws_rds_cluster: Add `engine_mode` attribute +``` diff --git a/internal/service/rds/cluster_data_source.go b/internal/service/rds/cluster_data_source.go index 6730c0d3352..c451fe1069b 100644 --- a/internal/service/rds/cluster_data_source.go +++ b/internal/service/rds/cluster_data_source.go @@ -68,6 +68,10 @@ func DataSourceCluster() *schema.Resource { Type: schema.TypeString, Computed: true, }, + "engine_mode": { + Type: schema.TypeString, + Computed: true, + }, "engine_version": { Type: schema.TypeString, Computed: true, @@ -172,6 +176,7 @@ func dataSourceClusterRead(d *schema.ResourceData, meta interface{}) error { d.Set("enabled_cloudwatch_logs_exports", aws.StringValueSlice(dbc.EnabledCloudwatchLogsExports)) d.Set("endpoint", dbc.Endpoint) d.Set("engine", dbc.Engine) + d.Set("engine_mode", dbc.EngineMode) d.Set("engine_version", dbc.EngineVersion) d.Set("hosted_zone_id", dbc.HostedZoneId) d.Set("iam_database_authentication_enabled", dbc.IAMDatabaseAuthenticationEnabled) diff --git a/internal/service/rds/cluster_data_source_test.go b/internal/service/rds/cluster_data_source_test.go index 55a57c18357..8739ca8305a 100644 --- a/internal/service/rds/cluster_data_source_test.go +++ b/internal/service/rds/cluster_data_source_test.go @@ -29,6 +29,9 @@ func TestAccRDSClusterDataSource_basic(t *testing.T) { resource.TestCheckResourceAttrPair(dataSourceName, "database_name", resourceName, "database_name"), resource.TestCheckResourceAttrPair(dataSourceName, "db_cluster_parameter_group_name", resourceName, "db_cluster_parameter_group_name"), resource.TestCheckResourceAttrPair(dataSourceName, "db_subnet_group_name", resourceName, "db_subnet_group_name"), + resource.TestCheckResourceAttrPair(dataSourceName, "engine", resourceName, "engine"), + resource.TestCheckResourceAttrPair(dataSourceName, "engine_mode", resourceName, "engine_mode"), + resource.TestCheckResourceAttrPair(dataSourceName, "engine_version", resourceName, "engine_version"), resource.TestCheckResourceAttrPair(dataSourceName, "hosted_zone_id", resourceName, "hosted_zone_id"), resource.TestCheckResourceAttrPair(dataSourceName, "master_username", resourceName, "master_username"), resource.TestCheckResourceAttrPair(dataSourceName, "network_type", resourceName, "network_type"),