From 4200ba5a116def152c05c48d0759f5cb4dd913b0 Mon Sep 17 00:00:00 2001 From: Mark Boyd Date: Thu, 19 Dec 2024 12:14:05 -0500 Subject: [PATCH] fix instance types of log group fields on instances so that they are actually saved to the database (#392) --- services/elasticsearch/elasticsearchinstance.go | 8 ++++---- services/rds/rdsinstance.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/services/elasticsearch/elasticsearchinstance.go b/services/elasticsearch/elasticsearchinstance.go index 1c95108..aa448f6 100644 --- a/services/elasticsearch/elasticsearchinstance.go +++ b/services/elasticsearch/elasticsearchinstance.go @@ -61,10 +61,10 @@ type ElasticsearchInstance struct { SubnetID4AZ2 string `sql:"-"` SecGroup string `sql:"-"` - SearchSlowLogsGroupARN string `sql:"size(-)"` - IndexSlowLogsGroupARN string `sql:"size(-)"` - ErrorLogsGroupARN string `sql:"size(-)"` - AuditLogsGroupARN string `sql:"size(-)"` + SearchSlowLogsGroupARN string `sql:"size(2048)"` + IndexSlowLogsGroupARN string `sql:"size(2048)"` + ErrorLogsGroupARN string `sql:"size(2048)"` + AuditLogsGroupARN string `sql:"size(2048)"` } func (i *ElasticsearchInstance) setPassword(password, key string) error { diff --git a/services/rds/rdsinstance.go b/services/rds/rdsinstance.go index ce5e702..8244917 100644 --- a/services/rds/rdsinstance.go +++ b/services/rds/rdsinstance.go @@ -60,7 +60,7 @@ type RDSInstance struct { ParameterGroupFamily string `sql:"-"` ParameterGroupName string `sql:"size(255)"` - EnabledCloudWatchLogGroupExports []string `sql:"-"` + EnabledCloudWatchLogGroupExports []string `sql:"type:jsonb"` StorageType string `sql:"size(255)"` }