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
Kategori: Terraform
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
implicit/explicit dependency with Terraform
implicit dependency does not have any keyword but it can be noticed by giving reference to another elements depends_on keyword help us to activate explicit dependency
dynamic keyword Terraform
Boilerplate code is pain for anyone who try to refactor existing architecture, terraform provides dynamic block to remove repetitive code blocks.