Terraform - random_id

This is a great resource type which you can utilize for the resources names which require unique name or strings for .e.g Storage account or s3 bucket.

Check the below code how you can add this resource type in your code and get benefited.




                         

In the above snippet you can see random_id resource type defined first and latter added in the storage name to generate the unique string as storage name.

16 comments:

  1. Thanks for sharing the information. Usefull information for terraform.

    ReplyDelete

FinOps Vs Cost Optimization

 Here's the detailed comparison clearly structured in pointers FinOps Vs Cost Recommendations: Aspect 1: Scope and Approach FinOps: H...