CiscoDevNet / terraform-provider-fmc

Terraform Provider for FMC
https://registry.terraform.io/providers/CiscoDevNet/fmc/latest/docs
Mozilla Public License 2.0
16 stars 30 forks source link

groups needed as data #18

Closed larsrei closed 1 year ago

larsrei commented 2 years ago

Hi,

when we plan a policy we don't use network or host objects for source/destination. Always groups (filled with groups or host/network) so I try to read groups as data to my terraform script but seems not possible. Only resource is allow but than there is a try to create. Is there a way to read a existing group and use it? If not would be nice to have this.

`data "fmc_network_group_objects" "ziel_app" { name = "G_AUTO_Group-1" }

terraform plan ╷ │ Error: Invalid data source │ │ on resources.tf line 9, in data "fmc_network_group_objects" "ziel_app": │ 9: data "fmc_network_group_objects" "ziel_app" { │ │ The provider ciscodevnet/fmc does not support data source "fmc_network_group_objects". │ │ Did you intend to use the managed resource type "fmc_network_group_objects"? If so, declare this using a "resource" block instead of a "data" block.`

best regards, Lars

jellyBeanz2019 commented 1 year ago

Is there anyway to get this assigned to someone? I’m having this same issue and because of the large amount of groups I have to create my code takes just over an hour to run.