Is it possible to modify Resources in before:deploy from a plugin?

I’m creating a plugin that creates Route53 records and a Lambda@Edge and I’m hoping to publish it to NPM once finished.

I need to attach values from resources that are created by aws-sdk in the before:deploy lifestyle stage in my plugin. Namely I need to attach LambdaFunctionAssociations and Aliases to my CloudfrontDistribution

I can get these values in serverless.yml by using variableResolvers, however I feel like a more elegant solution would be to programmatically append these to the arrays from my plugin code so that the end user doesn’t need to configure this.

Is it possible to do this? If so, how can I do it?