A Lambda for creating custom resources in CloudFormation.
Custom::ApiKeyValue
: Store value of API Key in a secure SSM parameter.
DevApiKeyValue:
Type: Custom::ApiKeyValue
Properties:
ServiceToken: ${cf:custom-resources-dev.ServiceToken}
ApiKeyId: !Ref DevApiKey
SsmParamPath: /api/keys/${self:provider.stage}
Overwrite: true # default is true
Install serverless and make
(brew install make
on MacOS) and then run:
make clean build test deploy