This is a sample that is send notification to LINE Notify when recived message's subject from AWS SNS topic.
This sample is NOT crypt LINE Notify secret.
Because, CloudFormation cannot create SecureString of SSM Parameter Store.
If you want to use this in production, you should load secret with SecureString of SSM Parameter Store, KMS and IAMRole.
- Execute
yarn install
- Copy
config/config.yml.sample
toconfig/(your any environment name).yml
- Issue token by LINE Notify.
- Fill your environment YAML.
- Execute
yarn run sls deploy -s {your environment name} -v
- Test created lambda by test data.
- You will see
{snsTopicName in YAML}_{your environment name}_sns_topic
in SNS topic page of AWS Web console. - Associate the topic to some data source by AWS Web console or any other tools.