Skip to content

Commit

Permalink
module example readme added
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptic022 committed Dec 25, 2019
1 parent c377b98 commit 729cad9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions module-example/README.md
@@ -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.
1 change: 1 addition & 0 deletions module-example/env/dev/main.tf
Expand Up @@ -27,3 +27,4 @@ module "customer-module" {
source = "../../customer-module"
customer-kinesis-stream-name = "terraform-kinesis-test"
}

0 comments on commit 729cad9

Please sign in to comment.