I am trying to create an ec2 instance with Terraform and want to clone a git repository inside the ec2 instance while launching it using Terraform. Is there a way to do it? Doing a git clone is not working and I am getting access denied(public key) error.
↧