The example I’ll provide for preparation could be defined as the necessary components required before something you desire happens—like cooking, dancing, lifting weights, making sacrifices for an entrepreneurial endeavor, or …
Counts in Terraform
Main.tf Output.tf how to print resources that is generated by counts What if we need to provision user list, first add lists to variables tf and variables.tf main.tf
Lookup on Terraform
Basic Syntax of the Lookup Function Based on the above syntax, the lookup function has three primary arguments. Map name: A map variable that contains the key-value pairs. Key: A key value …
Conditions on Terraform
Depend on conditions, we may need to use different parameters. Writing whole tf file with all possible conditions is not feasible and practical. TEST-1 I want to create ebs volume …
Providers AKA Data Sources at Terraform
There are some data sources that give some important information about underlying infrastructure like which region/zone we are working on aws. data keyword is used to depict data sources Get …
Secrets in Secrets Manager via Terraform
Store just 1 parameter Firstly, create secret manager path for our requirement, recovery_window_in_days parameters is 30 days by default but we use this exercise for test purposes, so we don’t …
Generate/Store/Retrieve Secrets via SSM Parameter Store and Terraform
We generate random password via terraform, then store it in aws ssm parameter store and retrieve it via data keyword. Add sensitive = true to prevent exposing of sensitive data