File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed
Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 22
33Terraform module which creates AWS <TODO_EXPANDED> resources.
44
5+ <!-- START--->
6+ ## 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
7+
8+ After creating a new repository from the template and cloning locally:
9+
10+ ``` bash
11+ ./eject.sh < module-name>
12+ ```
13+
14+ Where ` <module-name> ` can be extracted from the repository name using the pattern ` terraform-aws-<module-name> ` .
15+
16+ For example, if the repository name is ` terraform-aws-s3-bucket ` , then the module name is ` s3-bucket ` and the associated eject command is:
17+
18+ ``` bash
19+ ./eject.sh s3-bucket
20+ ```
21+
22+ Note: this message will self destruct upon ejection!
23+
24+ ## 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
25+ <!-- -END--->
526## Usage
627
728See [ ` examples ` ] ( https://github.com/clowdhaus/terraform-aws-<TODO>/tree/main/examples ) directory for working examples to reference:
Original file line number Diff line number Diff line change @@ -14,4 +14,7 @@ rg '<TODO>' --files-with-matches -t md -t tf | xargs sed -i "s/<TODO>/${MODULE}/
1414rg ' <TODO_UNDER>' --files-with-matches -t md -t tf | xargs sed -i " s/<TODO_UNDER>/${MODULE_UNDER} /g"
1515rg ' <TODO_EXPANDED>' --files-with-matches -t md -t tf | xargs sed -i " s/<TODO_EXPANDED>/${MODULE_EXPANDED} /g"
1616
17+ # Remove "howto" section on main README.md
18+ sed -i ' /<!--START/,/END--->/d' README.md
19+
1720rm ./eject.sh
You can’t perform that action at this time.
0 commit comments