# backstage-template-scaffolder-terraform

this is a scaffolder template for generating terraform resources using backstage.

scope of this demo:

- PoC aws resources (ec2, rds, s3)
- create a new repo with tf resources
- add tf resources to an existing repo
- single/collectiveworkflow

## quickstart

1. fork this repo
2. adapt default values such as target clusters and gitlab instance
3. use the catalog-import function to add the component to your backstage (link to the template.yaml file!)
4. add [plugin-scaffolder-backend-module-kubernetes-deploy](https://github.com/pfeifferj/backstage-plugin-scaffolder-kubernetes-deploy) to backstage

## troubleshooting

if you get `not allowed` errors while importing the template, make sure your `app-config.yaml` allows templates:

```yaml
catalog:
  (...)
  rules:
    - allow:
        (...)
        - Template
```
