Skip to content

Commit 72b40a2

Browse files
author
Ronan Doolan
committed
fix(rds): use CustSubscriptionId instead of CustomerAwsId for event subscriptions
The loadEventSubscription function was incorrectly using CustomerAwsId (AWS account ID) instead of CustSubscriptionId (subscription name) as the resource identifier. This caused import failures when the account ID was used as the subscription name in Terraform operations. Fixes event subscription import errors where AWS would reject the account ID as an invalid subscription identifier.
1 parent 069060c commit 72b40a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

providers/aws/rds.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ func (g *RDSGenerator) loadEventSubscription(svc *rds.Client) error {
213213
return err
214214
}
215215
for _, eventSubscription := range page.EventSubscriptionsList {
216-
resourceName := StringValue(eventSubscription.CustomerAwsId)
216+
resourceName := StringValue(eventSubscription.CustSubscriptionId)
217217
g.Resources = append(g.Resources, terraformutils.NewSimpleResource(
218218
resourceName,
219219
resourceName,

0 commit comments

Comments
 (0)