generated from Sage-Bionetworks-IT/lambda-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IT-3068] Lambda for emailing monthly S3 cost reports (#1)
* Fork from Sage-Bionetworks-IT/lambda-finops-email-totals#1.1.4 * Rename to lamda-finops-s3-cost-report * Convert lambda to meet STRIDES' needs for IT-3068 Send a monthly email with the total monthly costs broken down by AWS service, and the total monthly S3 costs broken down by usage type.
- Loading branch information
1 parent
a1a71d6
commit 81b7394
Showing
20 changed files
with
2,692 additions
and
331 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
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 |
---|---|---|
|
@@ -13,7 +13,7 @@ jobs: | |
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.9 | ||
python-version: 3.12 | ||
- uses: pre-commit/[email protected] | ||
|
||
pytest: | ||
|
@@ -23,18 +23,19 @@ jobs: | |
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.9 | ||
python-version: 3.12 | ||
- run: pip install -U pipenv | ||
- run: pipenv install --dev | ||
- run: pipenv run coverage run -m pytest tests/ -vv | ||
- run: pipenv sync --dev | ||
- run: pipenv run coverage run -m pytest tests/ -svv | ||
- run: pipenv run coverage lcov | ||
- name: upload coverage to coveralls | ||
uses: coverallsapp/github-action@v2 | ||
with: | ||
file: coverage.lcov | ||
fail-on-error: false | ||
|
||
sam-build-and-lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/sam-build | ||
- run: sam validate --lint --template .aws-sam/build/template.yaml | ||
- uses: ./.github/actions/sam-build-and-lint |
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 |
---|---|---|
|
@@ -50,6 +50,7 @@ coverage.xml | |
*.py,cover | ||
.hypothesis/ | ||
.pytest_cache/ | ||
coverage.lcov | ||
|
||
# Translations | ||
*.mo | ||
|
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
Oops, something went wrong.