-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add custom tranformer for terraform heroku generation
Signed-off-by: shashank381 <[email protected]>
- Loading branch information
1 parent
83b1d96
commit d3333be
Showing
12 changed files
with
1,865 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |
37 changes: 37 additions & 0 deletions
37
custom-terraform-Heroku/templates/learn-terraform-heroku/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.