Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add custom tranformer for terraform heroku generation #63

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions custom-terraform-Heroku/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
## Custom default transformer to generate terraform artifacts to deploy simple app on Heroku


### Prerequisites

1. terraform tool installed
2. heroku cli tool installed
3. heroku configured with credentials

### Run transform

```
move2kube transform -c move2kube-transformers/custom-terraform-Heroku -o heroku --overwrite
```

### Apply terraform artifacts

```
cd heroku
terraform init
terraform apply
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Ignore application files
node_modules

# Local .terraform directories
**/.terraform/*

# .tfstate files
*.tfstate
*.tfstate.*

# Crash log files
crash.log

# Ignore any .tfvars files that are generated automatically for each Terraform run. Most
# .tfvars files are managed as part of configuration and so should be included in
# version control.
#
# example.tfvars

# Ignore override files as they are usually used to override resources locally and so
# are not checked in
override.tf
override.tf.json
*_override.tf
*_override.tf.json

# Include override files you do wish to add to version control using negated pattern
#
# !example_override.tf

# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan
# example: *tfplan*

# Ignore CLI configuration files
.terraformrc
terraform.rc
terraform
Loading
Loading