-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
data source "pfptmeta_metaport" and "pfptmeta_metaport_cluster" should get name as input #11
Comments
Hi @talmarco, |
Hi @talmarco, Thank you for your feedback. Can you elaborate please what it is you're trying to achieve and what is your use case? |
Hi @kvitali @hod-alpert, Now since you have provided this great Terraform provider, we would like to migrate the second part of the above to the new Terraform provider. So my problem is I'd like to get the MetaPort ID in order to attach it to the LMK if you need more details, Thanks! |
Thanks for your reply @talmarco. One thing I don't get yet, why the following scenario won't solve your problem? Terraform creates metaport resource in meta -> Terraform deploy a VM -> userdata runs and bootstrap the MetaPort -> Create Mapped service, Access policy using the new Terraform provider -> attach the mapped subnet to the metaport using the resource id. |
@hod-alpert the terraform resource for creating a mapped service doesn't aware of the MetaPort ID that was created by the userdata. |
Got you now. So that's metaport and metaport cluster only that needs that feature? |
I think so. WDYT? |
Even though name is not unique for metaports - costumer's feedback brought the need to onboard metaport outside of tf code and later - use the metaport name to find it and attach mapped elements to it from terraform. Because it's not unique - in case there is more then one metaport with specified name - an error will be returned. Customer's ticket: #11
Even though name is not unique for metaport clusters - costumer's feedback brought the need to onboard metaports and metaport clusters outside of tf code and later - use the metaport name to find it and attach mapped elements to it from terraform. Because it's not unique - in case there is more then one metaport cluster with the specified name - an error will be returned. Customer's ticket: #11
Version 0.1.20 was released, enjoy! |
Hello,
Currently, it seems like both data sources "pfptmeta_metaport" and "pfptmeta_metaport_cluster" get only the resource ID as input.
It would be great to have the resource name as an input and get the resource id as an output.
In my scenario - the MetaPort is created while bootstrap with
userdata
script, so when Terraform runs, it doesn't know the MetaPort IDs.@hod-alpert fyi
Edit: I do understand that in Meta, the resource's name is not unique, and therefore the input for this data source is an ID and not the resource name. Having said that, what about returning as an output a list of resources with a given resource name, along with some other parameters, such as Healthy/Not healthy.
The text was updated successfully, but these errors were encountered: