Creating a Function by Running Terraform Commands
Go to the file path and run the terraform init command to initialize a working directory that contains the Terraform code.

Run the terraform apply command and enter yes after Enter a value:.

If the execution is successful, the function has been created.