From f2ec6637b033802ac8226adf6b1adfa881e59e5b Mon Sep 17 00:00:00 2001 From: Nima Kaviani Date: Mon, 22 Apr 2024 11:58:55 -0700 Subject: [PATCH 1/2] adds the argo workflow to run terraform templates Signed-off-by: Nima Kaviani --- .../terraform-workflows-templates.yaml | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 examples/terraform-integrations/terraform-workflows-templates.yaml diff --git a/examples/terraform-integrations/terraform-workflows-templates.yaml b/examples/terraform-integrations/terraform-workflows-templates.yaml new file mode 100644 index 00000000..106aa443 --- /dev/null +++ b/examples/terraform-integrations/terraform-workflows-templates.yaml @@ -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 From 10c55d291be9c68f1302e5459e6d2ca6c23d1c89 Mon Sep 17 00:00:00 2001 From: Nima Kaviani Date: Wed, 24 Apr 2024 10:42:19 -0700 Subject: [PATCH 2/2] adding the README Signed-off-by: Nima Kaviani --- examples/terraform-integrations/README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 examples/terraform-integrations/README.md diff --git a/examples/terraform-integrations/README.md b/examples/terraform-integrations/README.md new file mode 100644 index 00000000..c1af7714 --- /dev/null +++ b/examples/terraform-integrations/README.md @@ -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 +```