This repository contains the reusable action for the StackGen Generative IAC.
Please follow the steps below to setup the action:
- Signup for an account on StackGen
- Setup a Personal Access Token on StackGen
- Add the Personal Access Token as a secret in your repository with the name
STACKGEN_TOKEN
| Name | Description | Required | Default |
|---|---|---|---|
cloud | Cloud provider | No | "aws" |
language | Programming language | No | "Python" |
outputDir | Output directory | No | "./iac" |
scanPath | Path to scan | No | "." |
targetCompute | Target compute | No | "k8s" |
cleanup | Cleanup | No | "true" |
- name: Generate IACuses: appcd-dev/action@v0env:
STACKGEN_TOKEN: ${{ secrets.STACKGEN_TOKEN }}with:
# Required inputs## Cloud provider: aws, azure## Default: awscloud: 'aws'## Programming language: Python, Java## Default: Auto detect based on file extensionslanguage: 'Python'## Output directory: Directory to store the generated IAC## Default: current directoryoutputDir: './iac'## Path to scan: Path to scan for the application## Default: current directoryscanPath: '.'## Target compute: k8s, ecs## Default: k8stargetCompute: 'k8s'## Cleanup: true, false: Cleanup the stackgen mothership after the action## Default: truecleanup: 'true'The scripts and documentation in this project are released under the MIT License