Skip to content

Commit

Permalink
move data-exports (#1111)
Browse files Browse the repository at this point in the history
* move data-exports

* modify script

* remove checks
  • Loading branch information
iakov-aws authored Jan 23, 2025
1 parent 2b0938e commit 6bd4feb
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2,288 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/security-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,31 +105,6 @@ jobs:
run: |
cfn-lint ./cfn-templates/cid-admin-policies.yaml
cfn-scan-cur-aggregation:
runs-on: ubuntu-latest
steps:
- name: Git clone the repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'
- name: Install CFN tools
run: |
gem install cfn-nag
- name: CFN Nag scan
run: |
cfn_nag_scan --input-path ./cfn-templates/cur-aggregation.yaml
- name: Install cfn-lint
run: |
pip install cfn-lint
- name: CFN Lint
run: |
cfn-lint ./cfn-templates/cur-aggregation.yaml
terraform-scan:
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions assets/publish_lambda_layer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ rm -vf ./$layer
# Publish cfn (only works for the release)
if aws s3 ls "s3://aws-managed-cost-intelligence-dashboards" >/dev/null 2>&1; then
echo "Updating cid-cfn.yml"
aws s3 sync ./cfn-templates/ s3://aws-managed-cost-intelligence-dashboards/cfn/
aws s3 sync ./cfn-templates/ s3://aws-managed-cost-intelligence-dashboards/cfn/ --exclude 'cfn-templates/cur-aggregation.yaml' --exclude 'cfn-templates/data-exports-aggregation.yaml'
# Publish additional copy into respective version folder
aws s3 sync ./cfn-templates/ "s3://aws-managed-cost-intelligence-dashboards/cfn/${CID_VERSION}/"
aws s3 sync ./cfn-templates/ "s3://aws-managed-cost-intelligence-dashboards/cfn/${CID_VERSION}/" --exclude 'cfn-templates/cur-aggregation.yaml' --exclude 'cfn-templates/data-exports-aggregation.yaml'

echo "Syncing dashboards"
aws s3 sync ./dashboards s3://aws-managed-cost-intelligence-dashboards/hub/
Expand Down
Loading

0 comments on commit 6bd4feb

Please sign in to comment.