# Defining non-code Configs in serverless.yml with custom container image

**URL:** <https://forum.serverless.com/t/defining-non-code-configs-in-serverless-yml-with-custom-container-image/13404>\
**Category:** Serverless Framework\
**Tags:** aws, lambda, cloudformation\
**Created:** [December 15, 2020, 9:14pm UTC](https://forum.serverless.com/t/defining-non-code-configs-in-serverless-yml-with-custom-container-image/13404 "2020-12-15T21:14:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MicelaneousIssues](https://avatars.discourse-cdn.com/v4/letter/m/c77e96/32.png) [@MicelaneousIssues](https://forum.serverless.com/u/MicelaneousIssues)\
**Post date:** [December 15, 2020, 9:14pm UTC](https://forum.serverless.com/t/defining-non-code-configs-in-serverless-yml-with-custom-container-image/13404/1 "2020-12-15T21:14:10Z")

</div>

I am doing some prototyping with using my own container images to deploy lambda functions, as described here:

> **[Container Image Support for AWS Lambda](https://www.serverless.com/blog/container-support-for-lambda/)**
>
> Container Image Support for AWS Lambda has now been added. Read up on why you may (or may not) want to use it and how easy it is to use with the framework

I understand that I should package my lambda function code with the docker file for deployment, but what about other config settings including:

region,  
stage,  
stackName,  
timeout,  
memorySize,  
deploymentBucket,  
role,  
maximumRetryAttempts,  
vpc ({ securityGroupIds, subnetIds }),  
environment,  
layers,  
events

Is there a reference anywhere as to which of these need to move to the container, and which can stay in the serverless yml file for deployment using Cloud Formation?
