Skip to content

Commit

Permalink
Merge pull request #1585 from darkanakin41/aws_sns_arn_in_secrets
Browse files Browse the repository at this point in the history
feat(SNS): add topic_arn to created secrets
  • Loading branch information
turkenf authored Dec 17, 2024
2 parents e97a42b + c24972a commit 4bed0cf
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["arn"] = []byte(a)
}

return conn, nil
}
})
}

0 comments on commit 4bed0cf

Please sign in to comment.