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 IAC
uses: appcd-dev/action@v0
env:
STACKGEN_TOKEN: ${{ secrets.STACKGEN_TOKEN }}
with:
# Required inputs
## Cloud provider: aws, azure
## Default: aws
cloud: 'aws'
## Programming language: Python, Java
## Default: Auto detect based on file extensions
language: 'Python'
## Output directory: Directory to store the generated IAC
## Default: current directory
outputDir: './iac'
## Path to scan: Path to scan for the application
## Default: current directory
scanPath: '.'
## Target compute: k8s, ecs
## Default: k8s
targetCompute: 'k8s'
## Cleanup: true, false: Cleanup the stackgen mothership after the action
## Default: true
cleanup: 'true'
The scripts and documentation in this project are released under the MIT License