Skip to content

Commit

Permalink
adds the argo workflow to run terraform templates (#203)
Browse files Browse the repository at this point in the history
Signed-off-by: Nima Kaviani <[email protected]>
  • Loading branch information
nimakaviani authored Apr 24, 2024
1 parent 11eccd5 commit d08aed5
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
13 changes: 13 additions & 0 deletions examples/terraform-integrations/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Terraform Integrations for Backstage

This is an experimental effort allowing the users of the idpBuilder to run terraform modules using the tooling in place.

This stack add-on goes together with the work done under [backstage-terraform-integrations](https://github.com/cnoe-io/backstage-terraform-integrations/).
Once the add-on is enabled, the user will need to follow the setup discussed in the [backstage-terraform-integrations](https://github.com/cnoe-io/backstage-terraform-integrations/) repo for the remainder of the configuration, and terraform integrations should work.

This add-on has a dependency to the [reference implementation][../ref-implementation/]. In order to enable the add-on with
idpBuilder run the following:

```
./idpbuilder create --use-path-routing --package-dir examples/ref-implementation --package-dir examples/terraform-integrations
```
25 changes: 25 additions & 0 deletions examples/terraform-integrations/terraform-workflows-templates.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: terraform-argo-workflows-templates
namespace: argocd
labels:
env: dev
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: default
source:
repoURL: https://github.com/cnoe-io/backstage-terraform-integrations
targetRevision: main
path: argo-workflows-templates/dev
destination:
server: "https://kubernetes.default.svc"
namespace: argo
syncPolicy:
automated:
prune: true
syncOptions:
- CreateNamespace=true
automated:
selfHeal: true

0 comments on commit d08aed5

Please sign in to comment.