# Function Naming Convention

**URL:** https://forum.serverless.com/t/function-naming-convention/8717
**Category:** Serverless Framework
**Created:** [July 5, 2019, 6:17pm UTC](https://forum.serverless.com/t/function-naming-convention/8717 "2019-07-05T18:17:31Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![cyrus-mc](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/cyrus-mc/32/4559_2.png) [@cyrus-mc](https://forum.serverless.com/u/cyrus-mc)
#### Post date: [July 5, 2019, 6:17pm UTC](https://forum.serverless.com/t/function-naming-convention/8717/1 "2019-07-05T18:17:31Z")

</div>

Newish to the serverless framework.

When deploying a function serverless uses the following format serviceName-stage-functionName.

> service:  
> name: gitops

provider:  
name: aws  
runtime: nodejs10.x  
region: us-west-2  
profile: dev  
versionFunctions: false

package:  
individually: true

functions:  
gitopsRepoInit:  
handler: index.handler

```
memory: 512
timeout: 30

package:
  exclude:
    - 'serverless.yml'

```

So in the case above the function name becomes gitops-dev-gitopsRepoInit.

Is there a way to customize what it names the function. I am not putting this behind API gateway so having the stage in the name (in this case dev) is useless and actually confuses people looking at it.

---

<div class="post-metadata">

### Author: ![buggy](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/buggy/32/177_2.png) [@buggy](https://forum.serverless.com/u/buggy)
#### Post date: [July 7, 2019, 1:03pm UTC](https://forum.serverless.com/t/function-naming-convention/8717/2 "2019-07-07T13:03:48Z")

</div>

According to the [serverless.yml reference](https://serverless.com/framework/docs/providers/aws/guide/serverless.yml/) there is a `name` parameter that can be used to name the deployed Lambda. Personally I would advise against it as the Serverless Framework stage isn’t the same as the API Gateway stage. Removing it will prevent you from deploying different stages to the same account later.
