Skip to content

Commit

Permalink
feat: add custom tranformer for terraform heroku generation
Browse files Browse the repository at this point in the history
Signed-off-by: shashank381 <[email protected]>
  • Loading branch information
shashank381 committed May 22, 2024
1 parent 83b1d96 commit d3333be
Show file tree
Hide file tree
Showing 12 changed files with 1,865 additions and 0 deletions.
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

0 comments on commit d3333be

Please sign in to comment.