This repository has been archived by the owner on May 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated runtime to Python 3.8, and fixed binary release URLs to again…
… enable the two quick deploy options.
- Loading branch information
Showing
6 changed files
with
43 additions
and
18 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,6 +1,7 @@ | ||
FROM amazonlinux:1 | ||
RUN yum install -y python36-pip zip && yum clean all | ||
FROM amazonlinux:2 | ||
RUN yum install -y amazon-linux-extras && amazon-linux-extras enable python3.8 | ||
RUN yum install -y python3.8 zip && yum clean all | ||
COPY src /build | ||
RUN pip-3.6 install -r /build/requirements.txt -t /build/python/ | ||
RUN pip3.8 install -r /build/requirements.txt -t /build/python/ | ||
WORKDIR /build | ||
CMD sh build_package.sh |
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
export AWS_DEFAULT_REGION=us-east-1 | ||
#Change the below, an s3 bucket to store lambda code for deploy, and output report | ||
#Must be in same region as lambda (ie AWS_DEFAULT_REGION) | ||
export BUCKET=changeme | ||
export BUCKET=CHANGEME_THIS_IS_NOT_A_VALID_S3_BUCKET | ||
#Comma Seperated list of emails to send to | ||
export [email protected],[email protected] | ||
export [email protected] | ||
|
@@ -15,6 +15,12 @@ export CURRENT_MONTH=false | |
#Day of Month, leave as 6 unless you want to capture refunds and final support values, then change to 12 | ||
export DAY_MONTH=6 | ||
|
||
if [ ! -f bin/lambda.zip ]; then | ||
echo "lambda.zip not found! Downloading one we prepared earlier" | ||
curl -L https://aws-cost-explorer-report-release.s3.amazonaws.com/lambda.zip --create-dirs -o bin/lambda.zip | ||
curl -L https://aws-cost-explorer-report-release.s3.amazonaws.com/layer.zip --create-dirs -o bin/layer.zip | ||
fi | ||
|
||
cd src | ||
zip -ur ../bin/lambda.zip lambda.py | ||
cd .. | ||
|
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