TerraformでZendeskの構築を行うためのProviderプラグイン, terraform-provider-zendeskの日本語版READMEです。
Terraform provider for Zendesk
動作環境
- Terraform >= v0.11.10
- Go >= v1.11 (ビルドする場合のみ)
インストール手順
リリースページから最新版をダウンロードし解凍したバイナリ(terraform-provider-zendesk(.exe)
)をパスの通った場所に配置します。
ソースからビルドする場合
$ git clone git@github.com:nukosuke/terraform-provider-zendesk.git
$ cd terraform-provider-zendesk
$ export GO111MODULE=on
$ go mod download
$ go build
Docker
Dockerイメージを用意しています。これを利用するとZendesk providerの環境を自分で用意しなくてもTerraformコマンドの実行が可能です。
リソースディレクトリを /terraform
にマウントしてください。
$ docker run --rm -ti -v $(pwd)/examples:/terraform nukosuke/terraform-provider-zendesk init
Initializing provider plugins...
Terraform has been successfully initialized!
You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.
If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.
$ docker run --rm -ti -v $(pwd)/examples:/terraform nukosuke/terraform-provider-zendesk plan
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.
data.zendesk_ticket_field.status: Refreshing state...
data.zendesk_ticket_field.group: Refreshing state...
data.zendesk_ticket_field.subject: Refreshing state...
data.zendesk_ticket_field.assignee: Refreshing state...
data.zendesk_ticket_field.description: Refreshing state...
------------------------------------------------------------------------
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
+ zendesk_attachment.logo
id: <computed>
content_type: <computed>
content_url: <computed>
file_hash: "Vtptw0XCL7+ShQ8G3/9Q2dsYu3iofOk7J3WqTwzning="
file_name: "street.jpg"
file_path: "../zendesk/testdata/street.jpg"
inline: <computed>
size: <computed>
thumbnails.#: <computed>
token: <computed>
...
+ zendesk_trigger.auto-reply-trigger
id: <computed>
action.#: "1"
action.14699407.field: "notification_user"
action.14699407.value: "[\n \"requester_id\",\n \"Dear my customer\",\n \"Hi. This message was configured by terraform-provider-zendesk.\"\n]\n"
active: "true"
all.#: "3"
all.1027606754.field: "update_type"
all.1027606754.operator: "is"
all.1027606754.value: "Create"
all.2406064215.field: "role"
all.2406064215.operator: "is"
all.2406064215.value: "end_user"
all.375493961.field: "status"
all.375493961.operator: "is_not"
all.375493961.value: "solved"
title: "Auto Reply Trigger"
Plan: 16 to add, 0 to change, 0 to destroy.
作者
ライセンス
MITライセンス
詳細はLICENSEをご覧ください。