Skip to content

Commit

Permalink
feat(SNS): add topic_arn to created secrets
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre LEJEUNE <[email protected]>
  • Loading branch information
darkanakin41 committed Dec 10, 2024
1 parent cc7b958 commit 3222f5a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions config/sns/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,15 @@ func Configure(p *config.Provider) { //nolint:gocyclo
}
return diff, nil
}
// Add the topicARN into the secret
r.Sensitive.AdditionalConnectionDetailsFn = func(attr map[string]any) (map[string][]byte, error) {
conn := map[string][]byte{}

if a, ok := attr["arn"].(string); ok {
conn["topic_arn"] = []byte(a)
}

return conn, nil
}
})
}

0 comments on commit 3222f5a

Please sign in to comment.