diff --git a/.github/workflows/digger_workflow.yml b/.github/workflows/digger_workflow.yml index f4fdefe..1de2815 100644 --- a/.github/workflows/digger_workflow.yml +++ b/.github/workflows/digger_workflow.yml @@ -22,7 +22,16 @@ jobs: statuses: write # required to validate combined PR status steps: - - uses: actions/checkout@v4 + - name: Checkout + uses: actions/checkout@v4 + + - name: configure AWS credentials + uses: aws-actions/configure-aws-credencials@v2 + with: + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: ${{ secrets.AWS_ACCESS_KEY }} + - name: ${{ fromJSON(github.event.inputs.spec).job_id }} run: echo "job id ${{ fromJSON(github.event.inputs.spec).job_id }}" - uses: diggerhq/digger@vLatest @@ -35,4 +44,4 @@ jobs: aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} env: GITHUB_CONTEXT: ${{ toJson(github) }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/digger.yml b/digger.yml index 2099587..82a9520 100644 --- a/digger.yml +++ b/digger.yml @@ -1,3 +1,8 @@ +plan_storage: + type: s3 + bucket: amzn-digger-demo-s3 + region: us-east-1 + projects: - name: production - dir: prod \ No newline at end of file + dir: prod diff --git a/prod/main.tf b/prod/main.tf index d5d0f80..0b57c56 100644 --- a/prod/main.tf +++ b/prod/main.tf @@ -13,4 +13,7 @@ terraform { key = "terraform/state" region = "us-east-1" } -} \ No newline at end of file + + +} +