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.

10 comments:

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

    ReplyDelete

MS Defenders

 Microsoft Defender offers a wide range of security solutions, similar to the ones we've discussed (Defender for Containers, Defender fo...