-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
19 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
#!/usr/bin/env bash | ||
set -xeuv | ||
|
||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
|
||
aws cloudformation create-stack \ | ||
--capabilities CAPABILITY_NAMED_IAM \ | ||
--stack-name scala-slack-bot-lambda \ | ||
--template-body file://"${SCRIPT_DIR}"/../resources/cf-stack.yaml \ | ||
--parameters ParameterKey=BotToken,ParameterValue=${SLACK_BOT_TOKEN} | ||
|
||
SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd) | ||
|
||
aws cloudformation create-stack \ | ||
--capabilities CAPABILITY_NAMED_IAM \ | ||
--stack-name scala-slack-bot-lambda \ | ||
--template-body file://"${SCRIPT_DIR}"/../resources/cf-stack.yaml \ | ||
--parameters ParameterKey=BotToken,ParameterValue=${SLACK_BOT_TOKEN} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
#!/usr/bin/env bash | ||
set -xuev | ||
|
||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd) | ||
|
||
aws lambda update-function-configuration --function-name ScalaSlackLambda-lambda \ | ||
--runtime nodejs18.x \ | ||
--handler lambda.myJsHandler | ||
|
||
aws lambda update-function-code --function-name ScalaSlackLambda-lambda \ | ||
--zip-file fileb://${SCRIPT_DIR}/../lambda/.js/target/universal/lambda-0.1.0-SNAPSHOT.zip | ||
--zip-file fileb://${SCRIPT_DIR}/../lambda/.js/target/universal/lambda-0.1.0-SNAPSHOT.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
#!/usr/bin/env bash | ||
set -xuev | ||
|
||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd) | ||
|
||
aws lambda update-function-configuration --function-name ScalaSlackLambda-lambda \ | ||
--runtime java17 \ | ||
--timeout 300 \ | ||
--handler slackBotLambda.JVMHandler::handleRequest | ||
|
||
aws lambda update-function-code --function-name ScalaSlackLambda-lambda \ | ||
--zip-file fileb://${SCRIPT_DIR}/../lambda/.jvm/target/universal/lambda-0.1.0-SNAPSHOT.zip | ||
--zip-file fileb://${SCRIPT_DIR}/../lambda/.jvm/target/universal/lambda-0.1.0-SNAPSHOT.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters