Skip to content

Commit

Permalink
Add CUR deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
farski committed Apr 22, 2024
1 parent 6091e45 commit e4f04be
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/deploy-cur-cost-and-usage-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Deploy Cost and Usage Report

on:
push:
branches:
- main
paths:
- cur/cost-and-usage-report/template.yml

concurrency:
group: ${{ github.workflow }}

permissions:
id-token: write
contents: read

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-east-1
role-to-assume: arn:aws:iam::048723829744:role/PRX-GHA-AccessRole
role-session-name: gha-deploy-cur-report

- name: Deploy to management account
working-directory: cur/cost-and-usage-report
run: |
aws cloudformation deploy \
--region us-east-1 \
--stack-name cur \
--template-file template.yml \
--no-fail-on-empty-changeset \
--role-arn arn:aws:iam::048723829744:role/PRX-GHA-ServiceRoleForCloudFormation
File renamed without changes.

0 comments on commit e4f04be

Please sign in to comment.