Skip to content
Branch: master
Find file History
Type Name Latest commit message Commit time
Failed to load latest commit information.
customer-module module example created for different environment Dec 25, 2019
env module example readme added Dec 25, 2019
user-module module example readme added Dec 25, 2019

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.

You can’t perform that action at this time.