Skip to content

Commit b054769

Browse files
geeklennyxiaozhu36
authored andcommitted
Terraform module which creates Apsara Agile Live (IMP) App Template resource on Alibaba Cloud.
1 parent 756a762 commit b054769

File tree

8 files changed

+185
-2
lines changed

8 files changed

+185
-2
lines changed

CHANGELOG.md

Whitespace-only changes.

README-CN.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
terraform-alicloud-imp
2+
=====================================================================
3+
4+
本 Module 用于在阿里云为VPN网关创建[策略路由(PBR)](https://help.aliyun.com/document_detail/270121.html)
5+
6+
本 Module 支持创建以下资源:
7+
8+
* [低代码音频工厂(Imp_App_Template)](https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/resources/imp_app_template)
9+
10+
## 版本要求
11+
12+
| Name | Version |
13+
|------|---------|
14+
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.0 |
15+
| <a name="requirement_alicloud"></a> [alicloud](#requirement\_alicloud) | >= 1.131.0 |
16+
17+
## Providers
18+
19+
| Name | Version |
20+
|------|---------|
21+
| <a name="provider_alicloud"></a> [alicloud](#provider\_alicloud) | >= 1.131.0 |
22+
23+
## 用法
24+
25+
```hcl
26+
module "example" {
27+
source = "terraform-alicloud-modules/imp/alicloud"
28+
create_app_template = true
29+
app_template_name = "example_value"
30+
component_list = ["component.live", "component.liveRecord"]
31+
integration_mode = "paasSDK"
32+
scene = "business"
33+
}
34+
```
35+
36+
提交问题
37+
------
38+
如果在使用该 Terraform Module 的过程中有任何问题,可以直接创建一个 [Provider Issue](https://github.com/aliyun/terraform-provider-alicloud/issues/new),我们将根据问题描述提供解决方案。
39+
40+
**注意:** 不建议在该 Module 仓库中直接提交 Issue。
41+
42+
作者
43+
-------
44+
Created and maintained by Alibaba Cloud Terraform Team(terraform@alibabacloud.com)
45+
46+
许可
47+
----
48+
Apache 2 Licensed. See LICENSE for full details.
49+
50+
参考
51+
---------
52+
* [Terraform-Provider-Alicloud Github](https://github.com/aliyun/terraform-provider-alicloud)
53+
* [Terraform-Provider-Alicloud Release](https://releases.hashicorp.com/terraform-provider-alicloud/)
54+
* [Terraform-Provider-Alicloud Docs](https://registry.terraform.io/providers/aliyun/alicloud/latest/docs)

README.md

Lines changed: 60 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,60 @@
1-
# terraform-alicloud-imp
2-
Terraform Module for creating Apsara Agile Live (IMP) resources on Alibaba Cloud.
1+
Terraform module which creates Apsara Agile Live (IMP) App Template resource on Alibaba Cloud.
2+
3+
terraform-alicloud-imp
4+
=====================================================================
5+
6+
English | [简体中文](https://github.com/terraform-alicloud-modules/terraform-alicloud-imp/blob/master/README-CN.md)
7+
8+
Terraform module which creates Apsara Agile Live (IMP) App Template resource on Alibaba Cloud.
9+
10+
These types of resources are supported:
11+
12+
* [Imp_App_Template](https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/resources/imp_app_template)
13+
14+
## Requirements
15+
16+
| Name | Version |
17+
|------|---------|
18+
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | > = 0.13.0 |
19+
| <a name="requirement_alicloud"></a> [alicloud](#requirement\_alicloud) | > = 1.131.0 |
20+
21+
## Providers
22+
23+
| Name | Version |
24+
|------|---------|
25+
| <a name="provider_alicloud"></a> [alicloud](#provider\_alicloud) | > = 1.131.0 |
26+
27+
## Usage
28+
29+
```hcl
30+
module "example" {
31+
source = "terraform-alicloud-modules/imp/alicloud"
32+
create_app_template = true
33+
app_template_name = "example_value"
34+
component_list = ["component.live", "component.liveRecord"]
35+
integration_mode = "paasSDK"
36+
scene = "business"
37+
}
38+
```
39+
40+
Submit Issues
41+
-------------
42+
If you have any problems when using this module, please opening
43+
a [provider issue](https://github.com/aliyun/terraform-provider-alicloud/issues/new) and let us know.
44+
45+
**Note:** There does not recommend to open an issue on this repo.
46+
47+
Authors
48+
-------
49+
Created and maintained by Alibaba Cloud Terraform Team(terraform@alibabacloud.com)
50+
51+
License
52+
----
53+
Apache 2 Licensed. See LICENSE for full details.
54+
55+
Reference
56+
---------
57+
58+
* [Terraform-Provider-Alicloud Github](https://github.com/aliyun/terraform-provider-alicloud)
59+
* [Terraform-Provider-Alicloud Release](https://releases.hashicorp.com/terraform-provider-alicloud/)
60+
* [Terraform-Provider-Alicloud Docs](https://registry.terraform.io/providers/aliyun/alicloud/latest/docs)

examples/complete/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Complete
2+
3+
Configuration in this directory create Apsara Agile Live (IMP) App Template resource.
4+
5+
## Usage
6+
7+
To run this example you need to execute:
8+
9+
```bash
10+
$ terraform init
11+
$ terraform plan
12+
$ terraform apply
13+
```
14+
15+
Note that this example may create resources which cost money. Run `terraform destroy` when you don't need these resources.
16+
17+
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
18+
## Requirements
19+
20+
| Name | Version |
21+
|------|---------|
22+
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.0 |
23+
| <a name="requirement_alicloud"></a> [alicloud](#requirement\_alicloud) | >= 1.131.0 |

examples/complete/main.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module "example" {
2+
source = "../.."
3+
create_app_template = true
4+
app_template_name = "example_value"
5+
component_list = ["component.live", "component.liveRecord"]
6+
integration_mode = "paasSDK"
7+
scene = "business"
8+
}

main.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
resource "alicloud_imp_app_template" "imp_app_template" {
2+
count = var.create_app_template ? 1 : 0
3+
app_template_name = var.app_template_name
4+
component_list = var.component_list
5+
integration_mode = var.integration_mode
6+
scene = var.scene
7+
}

outputs.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
output "this_imp_app_template_id" {
2+
description = "The app template ID of IMP."
3+
value = concat(alicloud_imp_app_template.imp_app_template.*.id, [""])[0]
4+
}

variables.tf

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
variable "create_app_template" {
2+
description = "Whether to create resources in module."
3+
type = bool
4+
default = false
5+
}
6+
7+
variable "app_template_name" {
8+
description = "The name of the resource."
9+
type = string
10+
default = null
11+
}
12+
13+
variable "component_list" {
14+
description = "List of components."
15+
type = list(string)
16+
default = ["component.live", "component.liveRecord"]
17+
}
18+
19+
variable "integration_mode" {
20+
description = "Integration mode."
21+
type = string
22+
default = "paasSDK"
23+
}
24+
25+
variable "scene" {
26+
description = "Application Template scenario."
27+
type = string
28+
default = "business"
29+
}

0 commit comments

Comments
 (0)