This document is only for module developers. If you want to use cfn-modules
, check out the README.md.
Modules can implement interfaces. At the moment, interfaces are not "checked" but we plan to do this later.
none
Arn
none
Name
none
Id
none
SecurityGroupId
none
DnsName
none
IamActions
IamResources
none
none
none
none
none
CanonicalHostedZoneId
none
FullName
Unfortunately, we can not rely on npm
to add cfn-modules as dependencies to other cfn-modules. npm
will mess up the paths inside node_modules/
. Therfore, we have to use git submodules to achieve the same.
- Add the git submodule:
git submodule add https://github.com/cfn-modules/lambda-function node_modules/@cfn-modules/lambda-function
- Add the module name to the
bundledDependencies
inpackage.json
:"bundledDependencies": ["@cfn-modules/lambda-function"]
- Change into the dependency directory:
cd node_modules/@cfn-modules/lambda-function
- Fetch latest git information:
git fetch
- Update the version:
git merge vx.y.z
cd ../../../
rm test/package-lock.json
cd test/ && npm i
git pull
git submodule update --init --recursive