-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed typos, formatting, updated authentication description, removed …
…product disclaimer.
- Loading branch information
1 parent
9b4727e
commit 26cf29e
Showing
18 changed files
with
150 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
# Qwilt Provider Usage Examples | ||
|
||
This examples in this directory demonstrate how to use the Qwilt Terraform Provider. They cover various common use cases. | ||
The examples in this directory demonstrate how to use the Qwilt Terraform Provider. They cover various common use cases. | ||
|
||
Inside this directory, you will find the following examples: | ||
* *provider-install-verification*: Demonstrates how to confirm that the Qwilt Terraform Provider is installed correctly. | ||
* *qwilt-config-basic*: Demonstrates how to configure a single site, site configuration, certificate, and activation resource. | ||
* *qwilt-config-multi*: Demonstrates how to manage two sites, site configurations, certificates, and activation resources within a single Terraform configuration. | ||
* *qwilt-config-multi-workspace*: (Advanced) Demonstrates how to use the Terraform workspaces capability to manage multiple instances of the same configuration. Specifically, this example illustrates how to manage both production and non-production instances of a configuration that defines two sites. | ||
* *qwilt-datasource*: A practical example demonstrating how to use the *sites* and *certificates* data sources to query various resources. | ||
* **provider-install-verification**: Demonstrates how to confirm that the Qwilt Terraform Provider is installed correctly. | ||
* **qwilt-config-basic**: Demonstrates how to configure a single site, site configuration, certificate, and activation resource. | ||
* **qwilt-config-multi**: Demonstrates how to manage two sites, site configurations, certificates, and activation resources within a single Terraform configuration. | ||
* **qwilt-config-multi-workspace**: (Advanced) Demonstrates how to use the Terraform Workspaces capability to manage multiple instances of the same configuration. Specifically, this example illustrates how to manage both production and non-production instances of a configuration that defines two sites. | ||
* **qwilt-datasource**: A practical example demonstrating how to use the *sites* and *certificates* data sources to query various resources. | ||
|
||
|
||
**TIP:** The sample configuration files in this directory can also be used as starter files for provisioning and managing resources via the Terraform CLI. They are designed for customization-- replace placeholder values with your own specific configuration details. Replace the example certificate and key values with your own. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
# Output the publish_ops list of a site if site_id is not "all", but revision_id and publish_id are not defined | ||
# Output the publish_ops list of a site if site_id is not "all", but revision_id and publish_id are not defined. | ||
output "publish_ops_list" { | ||
value = var.site_id != "all" && data.qwilt_cdn_sites.detail.publish_op != null && var.publish_id == "all" && var.revision_id == "all" ? [for publish_op in data.qwilt_cdn_sites.detail.publish_op : publish_op] : null | ||
} | ||
|
||
# Output the publish_ops belonging to revision_id of a site if site_id and revision_id are defined, and publish_id is not defined | ||
# Output the publish_ops belonging to revision_id of a site if site_id and revision_id are defined, and publish_id is not defined. | ||
output "publish_ops_list_by_revision_id" { | ||
value = data.qwilt_cdn_sites.detail.publish_op != null && var.site_id != "all" && var.revision_id != "all" && var.publish_id == "all" ? [for publish_op in data.qwilt_cdn_sites.detail.publish_op : publish_op if publish_op.revision_id == var.revision_id] : null | ||
} | ||
|
||
# Output the publish_ops detail for an active job of a revision_id | ||
# Output the publish_ops detail for an active job of a revision_id. | ||
output "publish_ops_list_by_revision_id_active" { | ||
value = data.qwilt_cdn_sites.detail.publish_op != null && var.site_id != "all" && var.revision_id != "all" && var.publish_id == "all" ? [for publish_op in data.qwilt_cdn_sites.detail.publish_op : publish_op if publish_op.revision_id == var.revision_id && publish_op.is_active == true] : null | ||
} | ||
|
||
# Output the publish_ops detail of a matching operation if site_id and publish_id are set to explicit values | ||
# Output the publish_ops detail of a matching operation if site_id and publish_id are set to explicit values. | ||
output "publish_op_detail" { | ||
value = var.site_id == "all" || var.publish_id == "all" || data.qwilt_cdn_sites.detail.publish_op == null ? null : data.qwilt_cdn_sites.detail.publish_op[0] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
# Output the revision list of a site if site_id is not "all", and revision_id is not defined | ||
# Output the revision list of a site if site_id is not "all", and revision_id is not defined. | ||
output "revisions_list" { | ||
value = var.site_id != "all" && data.qwilt_cdn_sites.detail.revision != null && var.revision_id == "all" ? [for revision in data.qwilt_cdn_sites.detail.revision : { revision_id = revision.revision_id, revision_num = revision.revision_num, change_description = revision.change_description }] : null | ||
} | ||
|
||
# Output the revision detail of a matching revision if site_id and revision_id are set to explicit values | ||
# Output the revision detail of a matching revision if site_id and revision_id are set to explicit values. | ||
output "revision_detail" { | ||
value = var.site_id == "all" || var.revision_id == "all" || data.qwilt_cdn_sites.detail.revision == null ? null : data.qwilt_cdn_sites.detail.revision[0] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
# Output a site list if site_id is "all" and site_name isn't defined | ||
# Output a site list if site_id is "all" and site_name isn't defined. | ||
output "sites_list" { | ||
value = var.site_id == "all" && var.site_name == null ? [for site in data.qwilt_cdn_sites.detail.site : { site_name = site.site_name, site_id = site.site_id }] : null | ||
} | ||
|
||
# Output a matching site list if site_name is defined | ||
# Output a matching site list if site_name is defined. | ||
output "sites_list_by_site_name" { | ||
value = var.site_name != null ? [for site in data.qwilt_cdn_sites.detail.site : { site_name = site.site_name, site_id = site.site_id } if strcontains(site.site_name, var.site_name)] : null | ||
} | ||
|
||
# Output the detail of a matching site if site_id is set to an explicit value | ||
# Output the detail of a matching site if site_id is set to an explicit value. | ||
output "site_detail" { | ||
value = var.site_id == "all" || var.site_id == null || data.qwilt_cdn_sites.detail.site == null ? null : data.qwilt_cdn_sites.detail.site[0] | ||
} | ||
|
||
# Output to dump every attribute of every site available to your user (probably not what you want) | ||
# Output to dump every attribute of every site available to your user. | ||
#output "all_sites" { | ||
# value = data.qwilt_cdn_sites.detail | ||
#} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.