Skip to content

Commit

Permalink
Merge pull request #13 from rrigato/dev
Browse files Browse the repository at this point in the history
Remove uneeded lambda layer
  • Loading branch information
rrigato authored Mar 31, 2024
2 parents a06dc58 + 55e39fb commit 90d1118
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 22 deletions.
22 changes: 20 additions & 2 deletions scripts/app_deployment.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
#! /bin/bash

#exits program immediately if a command is not sucessful
set -e

if [ -z "$1" ]; then
echo "Missing commit message arguement 1"
exit 1
fi


git add -A

git commit -m "$1"


export PROJECT_NAME="tvratings"
export BUCKET_NAME="${PROJECT_NAME}-app-artifacts"
export DEPLOYMENT_PACKAGE="${PROJECT_NAME}_deployment_package.zip"
Expand Down Expand Up @@ -50,5 +59,14 @@ deactivate

git push origin dev

echo "pushed to remote"

gh pr create --title "$1" \
--body "Automated PR creation" \
--head dev \
--base master

echo "created PR"

echo "----------------------"
echo "deployment successful"
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,7 @@ Parameters:
Type: String
Default: lambda-deployment-bundles

oldLayerBucketKey:
Type: String
Default: ask_layer.zip

oldLayerBucketName:
Type: String
Default: burnday-app-artifacts


Resources:
askPythonLayer:
Type: AWS::Lambda::LayerVersion
Properties:
CompatibleRuntimes:
- python3.9
Content:
S3Bucket: !Ref oldLayerBucketName
S3Key: !Ref oldLayerBucketKey
Description: Alexa Skills kit python sdk for v1.16.1
LayerName: ask-core-1-16-1


askMostRecentPython311:
Type: AWS::Lambda::LayerVersion
Expand Down

0 comments on commit 90d1118

Please sign in to comment.