{"id":18512821,"url":"https://github.com/vmware/terraform-provider-avi","last_synced_at":"2025-05-08T00:29:26.117Z","repository":{"id":37748613,"uuid":"196468806","full_name":"vmware/terraform-provider-avi","owner":"vmware","description":"Terraform AVI Networks provider","archived":false,"fork":false,"pushed_at":"2024-12-11T11:29:47.000Z","size":17488,"stargazers_count":31,"open_issues_count":30,"forks_count":32,"subscribers_count":16,"default_branch":"eng","last_synced_at":"2024-12-19T03:11:24.633Z","etag":null,"topics":["avi","terraform","terraform-provider"],"latest_commit_sha":null,"homepage":"https://registry.terraform.io/providers/vmware/avi/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vmware.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE-OF-CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-11T21:44:18.000Z","updated_at":"2024-11-19T12:40:11.000Z","dependencies_parsed_at":"2023-09-22T21:51:32.002Z","dependency_job_id":"046c8e10-aa5d-4a41-82af-a1236f608b65","html_url":"https://github.com/vmware/terraform-provider-avi","commit_stats":null,"previous_names":[],"tags_count":38,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmware%2Fterraform-provider-avi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmware%2Fterraform-provider-avi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmware%2Fterraform-provider-avi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmware%2Fterraform-provider-avi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vmware","download_url":"https://codeload.github.com/vmware/terraform-provider-avi/tar.gz/refs/heads/eng","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231468021,"owners_count":18381174,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["avi","terraform","terraform-provider"],"created_at":"2024-11-06T15:35:35.903Z","updated_at":"2024-12-27T10:08:20.983Z","avatar_url":"https://github.com/vmware.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Terraform Provider\n==================\n- [![Gitter chat](https://badges.gitter.im/hashicorp-terraform/Lobby.png)](https://gitter.im/hashicorp-terraform/Lobby)\n- Website: https://www.terraform.io\n- Mailing list: [Google Groups](http://groups.google.com/group/terraform-tool)\n\n\u003cimg src=\"https://cdn.rawgit.com/hashicorp/terraform-website/master/content/source/assets/images/logo-text.svg\" width=\"600px\"\u003e\n\nDeveloping the Provider or Use Locally Built Provider\n----------------------------------------------------\nIf you wish to work on the provider or want to use the locally built provider,\nyou'll first need [Go](http://www.golang.org) and [Terraform](https://www.terraform.io) installed on your machine.\nYou'll also need to correctly setup a [GOPATH](http://golang.org/doc/code.html#GOPATH), as well as adding `$GOPATH/bin`\nto your `$PATH`.\n\nRequirements\n------------\n\n-\t[Terraform](https://www.terraform.io/downloads.html) 0.12.x/0.13+ (0.11.x or lower is incompatible)\n-\t[Go](https://golang.org/doc/install) 1.22.6 (to build the provider plugin)\n\nBuilding The Provider (Terraform v0.12+)\n----------------------------------------\n\nClone repository to: `$GOPATH/src/github.com/vmware/terraform-provider-avi`\n\n```sh\n$ mkdir -p $GOPATH/src/github.com/vmware; cd $GOPATH/src/github.com/vmware\n$ git clone https://github.com/vmware/terraform-provider-avi.git\n```\n\nEnter the provider directory and build the provider.\n\n```sh\n$ cd $GOPATH/src/github.com/vmware/terraform-provider-avi\n$ make\n```\nFor Terraform v0.12.x to use a locally built version of a provider add following to ~/.terraformrc on Linux/Unix.\n\n```\nproviders {\n  \"avi\" = \"$GOPATH/bin/terraform-provider-avi\"\n}\n```\nOr copy provider binary in ~./.terraform/plugins/linux_amd64/\n```shell\n$ mkdir -p ~./.terraform/plugins/linux_amd64/\n$ cp $GOPATH/bin/terraform-provider-avi ~./.terraform/plugins/linux_amd64/\n```\n\nBuilding The Provider (Terraform v0.13+)\n----------------------------------------\n\nClone repository to: `$GOPATH/src/github.com/vmware/terraform-provider-avi`\n\n```sh\n$ mkdir -p $GOPATH/src/github.com/vmware; cd $GOPATH/src/github.com/vmware\n$ git clone https://github.com/vmware/terraform-provider-avi.git\n```\n\nEnter the provider directory and build the provider\n\n```sh\n$ cd $GOPATH/src/github.com/vmware/terraform-provider-avi\n$ make build13\n```\nThis will put the provider binary in the ~/.terraform.d/plugins/vmware.com/avi/avi/\u003cprovider_version\u003e/$(GOOS)_$(GOARCH)\ndirectory.\n\nFor Terraform v0.13+, to use a locally built version of a provider you must add the following snippet to every\nterraform plan.\n```\nterraform {\n  required_providers {\n    avi = {\n      source  = \"vmware.com/avi/avi\"\n      version = \"\u003cprovider_version\u003e\"\n    }\n  }\n}\n```\n\n------\nUsage\n------\n\nCreate Avi Provider in terraform plan\n\n```\nprovider \"avi\" {\n  avi_username = \"admin\"\n  avi_tenant = \"admin\"\n  avi_password = \"password\"\n  avi_controller = \"x.x.x.x\"\n  avi_version = \"21.1.1\"\n}\n```\n\nCreate Avi Pool Example. Here Pool depends on read only tenant data source and another health monitor defined as\nresource in the terraform plan\n\n```\ndata \"avi_tenant\" \"default_tenant\" {\n  name= \"admin\"\n}\ndata \"avi_cloud\" \"default_cloud\" {\n  name= \"Default-Cloud\"\n}\n\nresource \"avi_applicationpersistenceprofile\" \"test_applicationpersistenceprofile\" {\n  name             = \"terraform-app-pers-profile\"\n  tenant_ref       = data.avi_tenant.default_tenant.id\n  persistence_type = \"PERSISTENCE_TYPE_CLIENT_IP_ADDRESS\"\n}\n\nresource \"avi_healthmonitor\" \"test_hm_1\" {\n  name       = \"terraform-monitor\"\n  type       = \"HEALTH_MONITOR_HTTP\"\n  tenant_ref = data.avi_tenant.default_tenant.id\n}\n\nresource \"avi_pool\" \"testpool\" {\n  name= \"pool-42\"\n  health_monitor_refs = [avi_healthmonitor.test_hm_1.id]\n  tenant_ref = data.avi_tenant.default_tenant.id\n  cloud_ref = data.avi_cloud.default_cloud.id\n  application_persistence_profile_ref= avi_applicationpersistenceprofile.test_applicationpersistenceprofile.id\n  servers {\n    ip {\n      type = \"V4\"\n      addr = \"10.90.64.66\"\n    }\n    port= 8080\n  }\n  fail_action {\n    type = \"FAIL_ACTION_CLOSE_CONN\"\n  }\n}\n```\n\nReference existing resources as readonly or data sources\n\n```\ndata \"avi_applicationprofile\" \"system_http_profile\" {\n  name= \"System-HTTP\"\n}\n\napplication_profile_ref= data.avi_applicationprofile.system_https_profile.id\n\n```\n-----------------\n\nTest The Provider\n-----------------\nIn order to test the provider, you can simply run `make test`.\n\n```sh\n$ make test\n```\n\nIn order to run the full suite of Acceptance tests, run `make testacc`. \nRunning the tests for a provider requires version 0.12.26 or higher of the Terraform CLI.\n\n*Note:* Acceptance tests create real resources, and often cost money to run.\n\n```sh\n$ make testacc\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvmware%2Fterraform-provider-avi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvmware%2Fterraform-provider-avi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvmware%2Fterraform-provider-avi/lists"}