# Help creating custom variable plugin

**URL:** <https://forum.serverless.com/t/help-creating-custom-variable-plugin/9940>\
**Category:** Serverless Framework\
**Created:** [November 23, 2019, 3:59am UTC](https://forum.serverless.com/t/help-creating-custom-variable-plugin/9940 "2019-11-23T03:59:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mess-lelouch](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@mess-lelouch](https://forum.serverless.com/u/mess-lelouch)\
**Post date:** [November 23, 2019, 3:59am UTC](https://forum.serverless.com/t/help-creating-custom-variable-plugin/9940/1 "2019-11-23T03:59:19Z")

</div>

Hello folks!

My apologies in advance if this question has been asked already. I have searched for a while but haven’t found anything.

I am creating a custom variable type plugin [https://serverless.com/framework/docs/providers/aws/guide/plugins#custom-variable-types](https://serverless.com/framework/docs/providers/aws/guide/plugins#custom-variable-types). I need to read some configuration for the plugin in the ‘custom’ section which I will use in the variable resolver. However, if that configuration has variables (e.g. foo: bar-${opt:stage}.json) I get them unresolved at constructor time and when my plugin’s variables start to get resolved. What is the proper way to get the “resolved” configuration before the variable resolver starts resolving.

I already marked the resolver with `isDisabledAtPrepopulation` = true and that didn’t work.

Thanks in advance!
