-
Notifications
You must be signed in to change notification settings - Fork 32
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
33 changed files
with
4,851 additions
and
1,202 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
53 changes: 53 additions & 0 deletions
53
.github/workflows/generate-azure-sqlmi-storage-pricing-json
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Generate Azure SQL MI Storage Pricing JSON | ||
|
||
on: | ||
schedule: | ||
# ┌───────────── minute (0 - 59) | ||
# │ ┌───────────── hour (0 - 23) | ||
# │ │ ┌───────────── day of the month (1 - 31) | ||
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC) | ||
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT) | ||
# │ │ │ │ │ | ||
# │ │ │ │ │ | ||
# │ │ │ │ │ | ||
# * * * * * | ||
# At 05:00 UTC on Sundays | ||
- cron: "0 5 * * 0" | ||
|
||
# Workflow dispatch trigger allows manually running workflow | ||
workflow_dispatch: {} | ||
|
||
jobs: | ||
azure_db_storage_pricing: | ||
name: "Generate Azure SQL MI Storage Pricing" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # Speed up checkout by not fetching history | ||
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.10.12 | ||
cache: 'pip' # caching pip dependencies | ||
|
||
- run: pip install -r requirements.txt | ||
|
||
- run: python3 tools/cloud_data/azure/azure_sqlmi_storage_pricing.py | ||
|
||
- name: Create Pull Request | ||
id: cpr | ||
uses: peter-evans/create-pull-request@v4 | ||
with: | ||
commit-message: "Update Azure SQL MI Storage Pricing Data" | ||
title: "Update Azure SQL MI Storage Pricing Data" | ||
body: "Updated Azure SQL MI Storage Pricing from GitHub Actions Workflow [${{ github.workflow }}](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})" | ||
branch: "task/update-azure-sqlmi-storage-pricing" | ||
delete-branch: true | ||
labels: "automation, data, azure" | ||
|
||
- name: Check outputs | ||
if: ${{ steps.cpr.outputs.pull-request-number }} | ||
run: | | ||
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}" | ||
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}" |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Changelog | ||
|
||
## v0.1.0 | ||
|
||
- Initial release |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Meta Parent: AWS Account Credentials | ||
|
||
## What It Does | ||
|
||
This meta parent policy template consolidates the results of all of the associated child policy templates to provide reports of all AWS accounts in the Flexera organization. Each AWS account will be presented in one of three reports based on their status, which will be one of the below values: | ||
|
||
- *Passed* - The AWS cross-account role exists and the child applied policy was able to successfully make a GetCallerIdentity request to AWS STS with it. | ||
- *Failed* - Either the AWS cross-account role does not exist or is not configured correctly, resulting in failure when making a GetCallerIdentity request to AWS STS with it. | ||
- *Unknown* - The child applied policy has not yet been created or completed execution, and as a result, the status of the AWS cross-account role is unknown. This is most commonly seen soon after applying the meta parent policy and should mostly disappear after 24 hours. | ||
|
||
__NOTE: This meta parent policy template is not automatically generated and is customized for this specific use case. It needs to be manually updated and maintained whenever the child policy template is updated.__ |
Oops, something went wrong.