Week 3 Practice Lab1 Implementing Dataops with Terraform

Hello!
I have a problem with file rds.tf, the exercise says:
2.5 RDS For password, use the master password generated in the first block

But in the first block, in the blueprint code:

resource “random_id” “master_password” {
byte_length = 8
}

In the documentation the terraform

“The resource random_id generates random numbers that are intended to be used as unique identifiers for other resources”

It is not a password, Can you create random_password for to solve this problem?

Thanks for your help!
Luis

Hello @lumillao
You are right; random_id generated a random number. Then we use the id attribute from this random_id that according to the documentation is a base64 representation of the number.
image
It can be used as a password since it contains random characters.

Hello @Amir_Zare

Thanks you very much for your help!

Luis.