diff --git a/README.md b/README.md index c2f81c5f8..b1ef0f7b4 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,14 @@ If you are building the provider, follow the instructions to [install it as a pl ex. ```hcl +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} + #configure provider with your cisco aci credentials. provider "aci" { # cisco-aci user name diff --git a/examples/aci_epg_to_domain/main.tf b/examples/aci_epg_to_domain/main.tf index 3fb2ec1eb..1d8d89128 100644 --- a/examples/aci_epg_to_domain/main.tf +++ b/examples/aci_epg_to_domain/main.tf @@ -1,3 +1,11 @@ +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} + #configure provider with your cisco aci credentials. provider "aci" { username = "" diff --git a/examples/aci_epg_to_static_path/main.tf b/examples/aci_epg_to_static_path/main.tf index 7ad35409d..4ec00f721 100644 --- a/examples/aci_epg_to_static_path/main.tf +++ b/examples/aci_epg_to_static_path/main.tf @@ -1,3 +1,11 @@ +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} + provider "aci" { username = "" password = "" diff --git a/examples/aci_test/main.tf b/examples/aci_test/main.tf index a03bb18aa..148ba0f61 100644 --- a/examples/aci_test/main.tf +++ b/examples/aci_test/main.tf @@ -1,3 +1,11 @@ +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} + provider "aci" { username = "" password = "" diff --git a/examples/aci_vmm/aci_resources/main.tf b/examples/aci_vmm/aci_resources/main.tf index 1c32b5d7d..b46dd4ad3 100644 --- a/examples/aci_vmm/aci_resources/main.tf +++ b/examples/aci_vmm/aci_resources/main.tf @@ -1,3 +1,11 @@ +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} + provider "aci" { username = "" password = "" diff --git a/examples/aci_vmm/vmware_resources/main.tf b/examples/aci_vmm/vmware_resources/main.tf index db43acc43..b1e473851 100644 --- a/examples/aci_vmm/vmware_resources/main.tf +++ b/examples/aci_vmm/vmware_resources/main.tf @@ -1,3 +1,11 @@ +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} + provider "vsphere" { user = var.vsphere_user password = var.vsphere_password diff --git a/examples/all/main.tf b/examples/all/main.tf index e7e04e667..8286d8104 100644 --- a/examples/all/main.tf +++ b/examples/all/main.tf @@ -1,3 +1,11 @@ +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} + provider "aci" { username = "" password = "" diff --git a/examples/ansible_parity_modules/main.tf b/examples/ansible_parity_modules/main.tf index 24d7b5ae8..a938baa2a 100644 --- a/examples/ansible_parity_modules/main.tf +++ b/examples/ansible_parity_modules/main.tf @@ -1,3 +1,11 @@ +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} + provider "aci" { username = "admin" password = "ins3965!ins3965!" diff --git a/examples/app_profile/main.tf b/examples/app_profile/main.tf index f03491123..645fc65ef 100644 --- a/examples/app_profile/main.tf +++ b/examples/app_profile/main.tf @@ -1,3 +1,11 @@ +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} + provider "aci" { username = "" password = "" diff --git a/examples/bd_dhcp_label/main.tf b/examples/bd_dhcp_label/main.tf index c1494a27d..34bf932c9 100644 --- a/examples/bd_dhcp_label/main.tf +++ b/examples/bd_dhcp_label/main.tf @@ -1,3 +1,10 @@ +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} provider "aci" { username = "" diff --git a/examples/bridge_domain/main.tf b/examples/bridge_domain/main.tf index f03491123..645fc65ef 100644 --- a/examples/bridge_domain/main.tf +++ b/examples/bridge_domain/main.tf @@ -1,3 +1,11 @@ +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} + provider "aci" { username = "" password = "" diff --git a/examples/client_end_point/main.tf b/examples/client_end_point/main.tf index e7ef10479..3966b3fcd 100644 --- a/examples/client_end_point/main.tf +++ b/examples/client_end_point/main.tf @@ -1,3 +1,11 @@ +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} + provider "aci" { username = "" password = "" diff --git a/examples/cloud_apic/provider.tf b/examples/cloud_apic/provider.tf index 2ce72ebb6..f5716c637 100644 --- a/examples/cloud_apic/provider.tf +++ b/examples/cloud_apic/provider.tf @@ -1,3 +1,11 @@ +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} + provider "aci" { username = "" # password = "" # diff --git a/examples/cloud_ctx_profile/main.tf b/examples/cloud_ctx_profile/main.tf index e2e5bd513..658eb8325 100644 --- a/examples/cloud_ctx_profile/main.tf +++ b/examples/cloud_ctx_profile/main.tf @@ -1,3 +1,12 @@ +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} + + provider "aci" { username = "" password = "" diff --git a/examples/cloud_subnet/main.tf b/examples/cloud_subnet/main.tf index 416426db4..c34a13246 100644 --- a/examples/cloud_subnet/main.tf +++ b/examples/cloud_subnet/main.tf @@ -1,3 +1,11 @@ +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} + provider "aci" { username = "" password = "" diff --git a/examples/cloud_vpn_gateway/main.tf b/examples/cloud_vpn_gateway/main.tf index 395f181e8..836f7b343 100644 --- a/examples/cloud_vpn_gateway/main.tf +++ b/examples/cloud_vpn_gateway/main.tf @@ -1,3 +1,10 @@ +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} provider "aci" { username = "" diff --git a/examples/connection/main.tf b/examples/connection/main.tf index bc818efb1..6810ea6f2 100644 --- a/examples/connection/main.tf +++ b/examples/connection/main.tf @@ -1,3 +1,11 @@ +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} + provider "aci" { username = "" password = "" diff --git a/examples/contract/main.tf b/examples/contract/main.tf index f03491123..645fc65ef 100644 --- a/examples/contract/main.tf +++ b/examples/contract/main.tf @@ -1,3 +1,11 @@ +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} + provider "aci" { username = "" password = "" diff --git a/examples/data_sources/main.tf b/examples/data_sources/main.tf index a5ac99c9d..f7792caaa 100644 --- a/examples/data_sources/main.tf +++ b/examples/data_sources/main.tf @@ -1,3 +1,11 @@ +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} + provider "aci" { username = "" password = "" diff --git a/examples/demo_examples/main.tf b/examples/demo_examples/main.tf index f03491123..645fc65ef 100644 --- a/examples/demo_examples/main.tf +++ b/examples/demo_examples/main.tf @@ -1,3 +1,11 @@ +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} + provider "aci" { username = "" password = "" diff --git a/examples/dhcp_option_policy/main.tf b/examples/dhcp_option_policy/main.tf index 4f63ac83e..b5fd46ca5 100644 --- a/examples/dhcp_option_policy/main.tf +++ b/examples/dhcp_option_policy/main.tf @@ -1,3 +1,10 @@ +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} provider "aci" { username = "" diff --git a/examples/dhcp_relay_policy/main.tf b/examples/dhcp_relay_policy/main.tf index ae2249af9..b8fd9d315 100644 --- a/examples/dhcp_relay_policy/main.tf +++ b/examples/dhcp_relay_policy/main.tf @@ -1,3 +1,10 @@ +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} provider "aci" { username = "" diff --git a/examples/entry/main.tf b/examples/entry/main.tf index f03491123..645fc65ef 100644 --- a/examples/entry/main.tf +++ b/examples/entry/main.tf @@ -1,3 +1,11 @@ +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} + provider "aci" { username = "" password = "" diff --git a/examples/epg/main.tf b/examples/epg/main.tf index f03491123..645fc65ef 100644 --- a/examples/epg/main.tf +++ b/examples/epg/main.tf @@ -1,3 +1,11 @@ +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} + provider "aci" { username = "" password = "" diff --git a/examples/epg_to_contract/main.tf b/examples/epg_to_contract/main.tf index 1ac4341d4..d291c36e5 100644 --- a/examples/epg_to_contract/main.tf +++ b/examples/epg_to_contract/main.tf @@ -1,3 +1,11 @@ +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} + provider "aci" { username = "" password = "" diff --git a/examples/fc_policy/main.tf b/examples/fc_policy/main.tf index f03491123..645fc65ef 100644 --- a/examples/fc_policy/main.tf +++ b/examples/fc_policy/main.tf @@ -1,3 +1,11 @@ +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} + provider "aci" { username = "" password = "" diff --git a/examples/filter/main.tf b/examples/filter/main.tf index f03491123..645fc65ef 100644 --- a/examples/filter/main.tf +++ b/examples/filter/main.tf @@ -1,3 +1,11 @@ +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} + provider "aci" { username = "" password = "" diff --git a/examples/function_node/main.tf b/examples/function_node/main.tf index abca095fb..b5215cf7d 100644 --- a/examples/function_node/main.tf +++ b/examples/function_node/main.tf @@ -1,3 +1,10 @@ +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} provider "aci" { username = "" diff --git a/examples/import/main.tf b/examples/import/main.tf index d9755e3fb..28682e0c7 100644 --- a/examples/import/main.tf +++ b/examples/import/main.tf @@ -1,3 +1,11 @@ +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} + provider "aci" { username = "" password = "" diff --git a/examples/imported_contract/main.tf b/examples/imported_contract/main.tf index 3deb2a93b..dcb5812ce 100644 --- a/examples/imported_contract/main.tf +++ b/examples/imported_contract/main.tf @@ -1,3 +1,11 @@ +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} + provider "aci" { username = "" password = "" diff --git a/examples/inline_entry/entry_main.tf b/examples/inline_entry/entry_main.tf index 855c19d54..b111cdf41 100644 --- a/examples/inline_entry/entry_main.tf +++ b/examples/inline_entry/entry_main.tf @@ -1,3 +1,10 @@ +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} provider "aci" { username = "" diff --git a/examples/l2_domain/main.tf b/examples/l2_domain/main.tf index bfe659247..43bc592ee 100644 --- a/examples/l2_domain/main.tf +++ b/examples/l2_domain/main.tf @@ -1,3 +1,10 @@ +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} provider "aci" { username = "" diff --git a/examples/l2_outside/main.tf b/examples/l2_outside/main.tf index 1e69470a5..3d99494d1 100644 --- a/examples/l2_outside/main.tf +++ b/examples/l2_outside/main.tf @@ -1,3 +1,10 @@ +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} provider "aci" { username = "" diff --git a/examples/l2out_extepg/main.tf b/examples/l2out_extepg/main.tf index baa978bfd..0de86a6c4 100644 --- a/examples/l2out_extepg/main.tf +++ b/examples/l2out_extepg/main.tf @@ -1,3 +1,10 @@ +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} provider "aci" { username = "" @@ -6,9 +13,7 @@ provider "aci" { insecure = true } - resource "aci_l2out_extepg" "example" { - l2_outside_dn = aci_l2_outside.example.id name = "demo_ext_epg" annotation = "example" @@ -19,5 +24,4 @@ resource "aci_l2out_extepg" "example" { pref_gr_memb = "exclude" prio = "level1" target_dscp = "AF11" - } \ No newline at end of file diff --git a/examples/l4_l7_service_graph_template/main.tf b/examples/l4_l7_service_graph_template/main.tf index 10e14f3d3..ffb16385c 100644 --- a/examples/l4_l7_service_graph_template/main.tf +++ b/examples/l4_l7_service_graph_template/main.tf @@ -1,3 +1,11 @@ +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} + provider "aci" { username = "" password = "" diff --git a/examples/leaf_breakout_port_group/main.tf b/examples/leaf_breakout_port_group/main.tf index a7f93ef6a..cf7c3d291 100644 --- a/examples/leaf_breakout_port_group/main.tf +++ b/examples/leaf_breakout_port_group/main.tf @@ -1,3 +1,11 @@ +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} + provider "aci" { username = "" password = "" diff --git a/examples/leaf_profile/main.tf b/examples/leaf_profile/main.tf index 095688bbc..dc4be2420 100644 --- a/examples/leaf_profile/main.tf +++ b/examples/leaf_profile/main.tf @@ -1,3 +1,11 @@ +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} + provider "aci" { username = "" password = "" diff --git a/examples/logical_device_context/main.tf b/examples/logical_device_context/main.tf index 7ceff7c96..6f1f613a7 100644 --- a/examples/logical_device_context/main.tf +++ b/examples/logical_device_context/main.tf @@ -1,3 +1,11 @@ +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} + provider "aci" { username = "" password = "" diff --git a/examples/logical_interface_context/main.tf b/examples/logical_interface_context/main.tf index dbe8ee542..41928f438 100644 --- a/examples/logical_interface_context/main.tf +++ b/examples/logical_interface_context/main.tf @@ -1,3 +1,11 @@ +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} + provider "aci" { username = "" password = "" diff --git a/examples/node_block/main.tf b/examples/node_block/main.tf index 505972d5f..8f2b7cfee 100644 --- a/examples/node_block/main.tf +++ b/examples/node_block/main.tf @@ -1,3 +1,11 @@ +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} + resource "aci_leaf_profile" "checkBLK" { name = "example" } diff --git a/examples/node_mgmt_epg/main.tf b/examples/node_mgmt_epg/main.tf index c054bc8e9..e756d5fe0 100644 --- a/examples/node_mgmt_epg/main.tf +++ b/examples/node_mgmt_epg/main.tf @@ -1,3 +1,10 @@ +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} provider "aci" { username = "" diff --git a/examples/physdom/main.tf b/examples/physdom/main.tf index cdc5fedb1..f876507fb 100644 --- a/examples/physdom/main.tf +++ b/examples/physdom/main.tf @@ -1,4 +1,10 @@ - +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} provider "aci" { username = "" diff --git a/examples/relations_concrete/main.tf b/examples/relations_concrete/main.tf index bd07e8e5f..4b40347c1 100644 --- a/examples/relations_concrete/main.tf +++ b/examples/relations_concrete/main.tf @@ -1,3 +1,11 @@ +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} + provider "aci" { username = "admin" password = "cisco123" diff --git a/examples/rest/main.tf b/examples/rest/main.tf index 16642e7b2..b7814574b 100644 --- a/examples/rest/main.tf +++ b/examples/rest/main.tf @@ -1,3 +1,11 @@ +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} + provider "aci" { username = "admin" password = "cisco123" diff --git a/examples/subject/main.tf b/examples/subject/main.tf index f03491123..645fc65ef 100644 --- a/examples/subject/main.tf +++ b/examples/subject/main.tf @@ -1,3 +1,11 @@ +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} + provider "aci" { username = "" password = "" diff --git a/examples/subnet/main.tf b/examples/subnet/main.tf index f03491123..645fc65ef 100644 --- a/examples/subnet/main.tf +++ b/examples/subnet/main.tf @@ -1,3 +1,11 @@ +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} + provider "aci" { username = "" password = "" diff --git a/examples/tenant/main.tf b/examples/tenant/main.tf index 5ecd344c7..5b0fe579c 100644 --- a/examples/tenant/main.tf +++ b/examples/tenant/main.tf @@ -5,6 +5,14 @@ # insecure = true # } +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} + provider "aci" { username = "nirav" private_key = "/Users/crest/go/src/github.com/ciscoecosystem/certdir/.key" diff --git a/examples/user_cert/main.tf b/examples/user_cert/main.tf index 9f60c5f72..4851edb28 100644 --- a/examples/user_cert/main.tf +++ b/examples/user_cert/main.tf @@ -18,6 +18,14 @@ Q1R8g1Y= EOF } +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} + provider "aci" { username = "" password = "" diff --git a/website/docs/index.html.markdown b/website/docs/index.html.markdown index 337871e45..7b6c6cf18 100644 --- a/website/docs/index.html.markdown +++ b/website/docs/index.html.markdown @@ -96,6 +96,14 @@ Click the + sign and in the Create X509 Certificate enter a certificate name in Example Usage ------------ ```hcl +terraform { + required_providers { + aci = { + source = "ciscodevnet/aci" + } + } +} + #configure provider with your cisco aci credentials. provider "aci" { # cisco-aci user name