While using generic...
 
Notifications
Clear all

While using generic git repository as a module source, which of the below options allows terraform to select a specific version or tag instead of selecting the HEAD.

1 Posts
1 Users
0 Likes
399 Views
(@tsuchiuramanual)
Noble Member
Joined: 2 years ago
Posts: 747
Topic starter  

While using generic git repository as a module source, which of the below options allows terraform to select a specific version or tag instead of selecting the HEAD.

Show Answer Hide Answer

Suggested Answer: A

Explanation:

By default, Terraform will clone and use the default branch (referenced by HEAD) in the selected repository. You can override this using the ref argument: module "vpc" {

source = "git:: https://example.com/vpc.git?ref=v1.2.0"

}

The value of the ref argument can be any reference that would be accepted by the git checkout command, including branch and tag names. https://www.terraform.io/docs/modules/sources.html

   
Quote

Latest HashiCorp TA-002-P Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: