Skip to content

dedo-devops/aws-slack-notification

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aws-slack-notifications

Setup instructions.

Prerequisites:

Create the manifest

  • deploy_stack.rb -g slack_notificationsTemplate.yaml | tee ACCOUNTIDENTIFIER-Manifest.yaml
  • Edit the manifest
  • Be sure to set all the parameters in the Manifest file to be correct
  • Add the following for the PreInstall script
# Preinstall script will build the zip upload the Lambda code to the S3 bucket PreInstallScript: |  #!/bin/bash -xe   if [ "x{{pLambdaVersion}}" == "x" ] ; then  echo "Didn't specify pLambdaVersion on the commandline "  exit 1  fi    object="s3://{{pArtifactBucket}}/{{pArtifactPrefix}}/{{pLambdaVersion}}/{{pSlackLambdaZipFile}}"  zip="{{pSlackLambdaZipFile}}"   Lambda_Dir=../lambda   echo "Pushing new Slack Lambda to S3 bucket $object"  cd $Lambda_Dir   zip $zip slack_notify_lambda.js && aws s3 cp $zip $object && rm $zip

Deploy it

deploy_stack.rb -m ACCOUNTIDENTIFIER-Manifest.yaml 

About

Lambdas to help manage accounts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%