terraform-provider-hashicups | Terraform provider for Hashicups demo app | Infrastructure Automation library
kandi X-RAY | terraform-provider-hashicups Summary
kandi X-RAY | terraform-provider-hashicups Summary
This repo is a companion repo to the Call APIs with Terraform Providers Learn collection. In the collection, you will use the HashiCups provider as a bridge between Terraform and the HashiCups API. Then, extend Terraform by recreating the HashiCups provider. By the end of this collection, you will be able to take these intuitions to create your own custom Terraform provider. Visit the boilerplate branch of this repository for this Terraform provider's specific starter template. The Terraform Provider Scaffold is a quick-start repository for creating a Terraform provider. Use this GitHub template when you're ready to create your own custom provider.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- resourceOrder returns a schema . Resource .
- dataSourceCoffees returns a resource for the request
- dataSourceOrder creates a schema .
- providerConfigure configures a provider .
- resourceOrderCreate creates an ordered order item .
- dataSource?!"
- dataSourceIngredients returns a schema definition for the data source .
- resourceOrderUpdate updates an order item .
- dataSourceCoffeesRead is used to read a list of coffees
- Provider returns an instance of the provider .
terraform-provider-hashicups Key Features
terraform-provider-hashicups Examples and Code Snippets
$ make install
$ cd examples
$ terraform init && terraform apply
Community Discussions
Trending Discussions on terraform-provider-hashicups
QUESTION
I'm planning to create a terraform provider that builds a giant XML file. The service that consumes the XML file only has the 1 big giant XML file as a single resource. Inn the example below, this stitched up xml is the only resource.
...ANSWER
Answered 2020-Nov-16 at 19:19With the examples so generalized I'm not sure I'm fully understanding the situation, but I think what you are saying is that the remote API models this whole "Main" object, including all of its sub-items, as a single unit that must be created, updated, and destroyed together.
If that is true, then the most appropriate representation for it in Terraform would be a single resource type with nested blocks representing each of the nested elements in the XML.
It's not generally practical to split a single remote object across multiple Terraform resources because each resource has a separate lifecycle and so providers can't directly coordinate the handling of multiple resource instances together as a single operation. The role of a Terraform provider is typically to just adapt the underlying API design to fit Terraform's model, rather than to create significant new abstractions on top of the underlying API concepts.
The particular XML structure you've defined here is actually quite a nice fit for a nested block type represented as a map, using the map keys as the Id
attributes in your XML:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install terraform-provider-hashicups
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page