Skip to content

bugfix: aws-sso.yaml -> aws-sso.njk (#24) #76

bugfix: aws-sso.yaml -> aws-sso.njk (#24)

bugfix: aws-sso.yaml -> aws-sso.njk (#24) #76

Workflow file for this run

name: aws-deploy
on:
push:
branches: [master]
jobs:
org-formation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Assume AWS Role
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.CI_SERVICE_USER_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.CI_SERVICE_USER_SECRET_ACCESS_KEY }}
aws-region: us-east-1
role-to-assume: arn:aws:iam::928879890086:role/bootstrap-ci-service-access-CiServiceRole-ZUKNUGHX2CNB
role-duration-seconds: 1200
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Cache node modules
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install dependencies
run: npm install
- name: Validate ofn templates
run: npm run validate-tasks
- name: Deploy with ofn
run: npm run ci-perform-tasks
sceptre-MemberX:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.12
- name: Cache python modules
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install sceptre
- name: Assume AWS Role
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.CI_SERVICE_USER_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.CI_SERVICE_USER_SECRET_ACCESS_KEY }}
aws-region: us-east-1
role-to-assume: arn:aws:iam::320171649655:role/OrganizationFormationBuildAccessRole
role-duration-seconds: 1200
- name: Deploy with sceptre
run: |
cd sceptre/MemberX
sceptre launch prod --yes
sceptre-MemberY:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.12
- name: Cache python modules
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install sceptre
- name: Assume AWS Role
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.CI_SERVICE_USER_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.CI_SERVICE_USER_SECRET_ACCESS_KEY }}
aws-region: us-east-1
role-to-assume: arn:aws:iam::346742127440:role/OrganizationFormationBuildAccessRole
role-duration-seconds: 1200
- name: Deploy with sceptre
run: |
cd sceptre/MemberY
sceptre launch prod --yes