AWS credential environment variable in the github workflow
MODIFY
aws-ts-netlify-cms-and-oauth/cms-oauth/.github/workflows/build-and-deploy.yml
aws-ts-netlify-cms-and-oauth/cms-oauth/.github/workflows/build-and-deploy.yml
@@ -24,6 +24,9 @@ jobs:
- name: Preview infrastructure
if: ${{ github.event_name == 'pull_request' }}
env:
+ AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
+ AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
+ AWS_SESSION_TOKEN: ${{ secrets.AWS_SESSION_TOKEN }}
PULUMI_STACK: ${{ secrets.PULUMI_STACK}}
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
run:
@@ -32,6 +35,9 @@ jobs:
- name: Deploy infrastructure
if: ${{ github.event_name == 'push' }}
env:
+ AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
+ AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
+ AWS_SESSION_TOKEN: ${{ secrets.AWS_SESSION_TOKEN }}
PULUMI_STACK: ${{ secrets.PULUMI_STACK}}
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
run: pulumi up --yes --cwd infrastructure -s "${{ secrets.PULUMI_STACK }}"
\ No newline at end of file

MODIFY
aws-ts-netlify-cms-and-oauth/cms/.github/workflows/deployCMS.yml
aws-ts-netlify-cms-and-oauth/cms/.github/workflows/deployCMS.yml
@@ -29,6 +29,9 @@ jobs:
- name: Preview infrastructure
if: ${{ github.event_name == 'pull_request' }}
env:
+ AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
+ AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
+ AWS_SESSION_TOKEN: ${{ secrets.AWS_SESSION_TOKEN }}
PULUMI_STACK: ${{ secrets.PULUMI_STACK}}
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
run:
@@ -37,6 +40,9 @@ jobs:
- name: Deploy infrastructure
if: ${{ github.event_name == 'push' }}
env:
+ AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
+ AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
+ AWS_SESSION_TOKEN: ${{ secrets.AWS_SESSION_TOKEN }}
PULUMI_STACK: ${{ secrets.PULUMI_STACK}}
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
run: pulumi up --yes --cwd infrastructure -s "${{ secrets.PULUMI_STACK }}"

AWS credential environment variable in the github workflow