feat(rnd,infra) Set up terraform (#7565)

* add terraform

* gitignore update

* linting

* formatting and linting in ci

* store state in backend bucket
This commit is contained in:
Aarushi
2024-07-25 09:45:36 +01:00
committed by GitHub
parent d9a1a1edc8
commit 22b6dbbf6a
12 changed files with 311 additions and 0 deletions

33
.github/workflows/autogpt-infra-ci.yml vendored Normal file
View File

@@ -0,0 +1,33 @@
name: AutoGPT Builder Infra
on:
push:
branches: [ master ]
paths:
- '.github/workflows/autogpt-infra-ci.yml'
- 'rnd/infra/**'
pull_request:
paths:
- '.github/workflows/autogpt-infra-ci.yml'
- 'rnd/infra/**'
defaults:
run:
shell: bash
working-directory: rnd/infra
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: TFLint
uses: pauloconnor/tflint-action@v0.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tflint_path: terraform/
tflint_recurse: true
tflint_changed_only: false