Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ Create the `mapping.json` file in your project and modify the names to your hear
},
"apiGateway": "$stage-$service",
"lambda": "$service-$stage-$lambda",
"logGroup": "/aws/lambda/$service-$stage-$lambda"
"logGroup": "/aws/lambda/$service-$stage-$lambda",
"ecr": "$service-$stage"
}

### Mapping Variable Reference
Expand Down
5 changes: 4 additions & 1 deletion naming.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const fs = require('fs')
const _ = require('lodash')
const uuidv4 = require('uuid/v4');
const { v4: uuidv4 } = require('uuid');

module.exports = {
dataSource: undefined,
Expand Down Expand Up @@ -56,6 +56,9 @@ module.exports = {
})
return logGroup
},
getEcrRepositoryName() {
return this._getMappings().ecr
},
setFunctionNames(provider) {
const self = this
var mappings
Expand Down
Loading