Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c377b98
commit 729cad9
Showing
2 changed files
with
15 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,14 @@ | ||
In this example, we have made 2 modules, User Module and Customer Module.I have just put dummy resources like s3 , kinesis for example. Module can have any number of resources.Companies can have their own registry for modules which will be used by other teams. | ||
|
||
Steps for creating resources in dev environment. | ||
|
||
``` | ||
cd module-example/env/dev | ||
terraform init | ||
terraform plan -out=myplan | ||
terraform apply | ||
``` | ||
|
||
Similar approach will be taken for stage/prod environment.We can pass it different values for different environment. | ||
|
||
If you will see, I have changed the provider region for each environment. |
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