The current implementation doesn't allow access to the secretsmanager Secret at all. AFAIK there's no way to add a resource policy to the Secret via this implementation.
Would it be possible to create a variation of this Construct that takes an existing Secret as a prop? That way engineers can configure the Secret in the way that they need, while still using the key generation capabilities of the Custom Resource.
The current implementation doesn't allow access to the secretsmanager Secret at all. AFAIK there's no way to add a resource policy to the Secret via this implementation.
Would it be possible to create a variation of this Construct that takes an existing Secret as a prop? That way engineers can configure the Secret in the way that they need, while still using the key generation capabilities of the Custom Resource.