Comments (3)
As discussed on Slack, I donβt think this is something that should be added to the go-cloudstack
package. Instead I think you should create this logic in the data resource itself.
So just do a list of all templates and then search true them matching the names against the regex and maybe using the create date to determine which is the latest version.
I'll close this issue now since we discussed the options. Feel free to reopen or ping me again on Slack if you have further questions. Looking forward to the PR for adding this support π
from terraform-provider-cloudstack.
@svanharmelen as this is the very first datasource for this provider I'll not be able to use my usual Copy Paste Replace Driven Development :-)
I'll try to figure out how to do it but it would take me a lot a time.
Do you have the skills (and time) to it quickly (at least some skeleton)?
from terraform-provider-cloudstack.
Would be easy enough I think, but I don't have time today... Maybe next week I can whip something up, but no promises whatsoever!
You could also check out some of the data resources of other providers. They could be a good starting point I guess.
If you create a first WIP PR, we can take it from there I guess.
from terraform-provider-cloudstack.
Related Issues (20)
- Request Network ACL Rules number support HOT 20
- Allow creating cloudstack_instance in stopped state HOT 2
- root_disk_size unit changes after creation of instance (GB to Bytes) HOT 4
- Add support for importing cloudstack_* entities HOT 5
- Expected VirtualMachine.ostypeid to be an int64, was a string (on Exoscale) HOT 16
- terraform destroy fails when IP is used for source NAT HOT 3
- cloudstack_network source_nat_ip does not work HOT 12
- Enable VPN on source NAT IP for network HOT 4
- terraform import cloudstack_network does not work
- Tags were removed from resources HOT 2
- Error creating the new instance test: json: cannot unmarshal string into Go struct field DeployVirtualMachineResponse.ostypeid of type int64 HOT 4
- Cannot upload image for template with from URL ending .img HOT 2
- Add new resource: Project HOT 3
- Fix documentation for cloudstack_loadbalancer_rule HOT 1
- API version too old HOT 3
- Error retrieving ID of template: json: cannot unmarshal object into Go struct field alias.childtemplates of type []interface {} HOT 8
- Cannot pass data to custom service-offering HOT 1
- cloudstack_port_forward does not work HOT 4
- Add cloudstack_network datasource HOT 1
- Terraform doesn't work with ASC 4.15 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-provider-cloudstack.