Skip to content

Commit

Permalink
Setup s3 bucket for remote state initially
Browse files Browse the repository at this point in the history
  • Loading branch information
tbsklg committed Aug 15, 2024
1 parent 915d457 commit a95e5df
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 3 deletions.
30 changes: 29 additions & 1 deletion .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,42 @@ permissions:
id-token: write
contents: read
pull-requests: write
jobs:
bootstrap-infrastructure:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: hashicorp/setup-terraform@v1

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: eu-central-1

- name: Terraform Init
run: terraform init
working-directory: infrastructure/remote-state

- name: Terraform Plan
if: github.event.name == 'pull_request'
run: terraform plan
working-directory: infrastructure/remote-state

- name: Terraform Apply
#if: github.ref == 'refs/head/main' && github.event_name == 'push'
run: terraform apply -auto-approve
working-directory: infrastructure/remote-state

jobs:
deploy-infrastructure:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: hashicorp/setup-terraform@v3

- name: Build rust lambda
- name: Build & Test lambda
run: |
pip3 install cargo-lambda
rustup update stable && rustup default stable
Expand Down
2 changes: 1 addition & 1 deletion cli-client/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cli-client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "strikes"
version = "0.1.0"
version = "0.0.1"
edition = "2021"

[lib]
Expand Down

0 comments on commit a95e5df

Please sign in to comment.