Skip to content

Commit

Permalink
ci: add coorect role names
Browse files Browse the repository at this point in the history
  • Loading branch information
dasfmi committed Oct 9, 2024
1 parent a8dfe11 commit db52025
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pre-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ jobs:
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: eu-west-1
role-to-assume: "arn:aws:iam::887822303684:role/axiom_forwarder_github_actions20240222164306574100000002"
role-session-name: release_to_dev
role-to-assume: "arn:aws:iam::887822303684:role/axiom-cloudwatch-forwarder-pre-releas-20241009050747493200000001"
role-session-name: pre-release
- run: cd src && zip forwarder.zip *.py
- name: Release to Dev
run: aws s3 cp --acl public-read ./src/forwarder.zip s3://axiom-cloudformation-dev/axiom-cloudwatch-forwarder/$LAMBDA_ZIP_VERSION/
Expand All @@ -40,7 +40,7 @@ jobs:
release_cloudformation_stacks:
runs-on: ubuntu-latest
needs:
- python
- release_lambda_zip
steps:
- uses: actions/checkout@v4
- run: wget https://github.com/mikefarah/yq/releases/download/v$YQ_VERSION/yq_linux_amd64.tar.gz -O - | tar xz && mv yq_linux_amd64 /usr/local/bin/yq
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ jobs:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: ${{ vars.AWS_REGION }}
role-to-assume: ${{ vars.AWS_IAM_ROLE }}
aws-region: eu-west-1
role-to-assume: arn:aws:iam::694952825951:role/axiom-cloudwatch-forwarder-release-20241007163724313800000001
role-session-name: release_to_prod
- name: Zip code directory
run: cd src && zip forwarder.zip *.py
Expand Down

0 comments on commit db52025

Please sign in to comment.