File tree Expand file tree Collapse file tree 4 files changed +105
-2
lines changed
examples/tencentcloud-ses Expand file tree Collapse file tree 4 files changed +105
-2
lines changed Original file line number Diff line number Diff line change 1+ provider "tencentcloud" {
2+ region = " ap-guangzhou"
3+ }
4+
5+ resource "tencentcloud_ses_template" "example" {
6+ template_name = " tf_example_ses_temp"
7+ template_content {
8+ html = <<- EOT
9+ <!DOCTYPE html>
10+ <html lang="en">
11+ <head>
12+ <meta charset="UTF-8">
13+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
14+ <title>mail title</title>
15+ </head>
16+ <body>
17+ <div class="container">
18+ <h1>Welcome to our service! </h1>
19+ <p>Dear user,</p>
20+ <p>Thank you for using Tencent Cloud:</p>
21+ <p><a href="https://cloud.tencent.com/document/product/1653">https://cloud.tencent.com/document/product/1653</a></p>
22+ <p>If you did not request this email, please ignore it. </p>
23+ <p><strong>from the iac team</strong></p>
24+ </div>
25+ </body>
26+ </html>
27+ EOT
28+ }
29+ }
30+
31+ resource "tencentcloud_ses_domain" "domain" {
32+ email_identity = " iac.cloud"
33+ }
34+
35+ resource "tencentcloud_ses_email_address" "email_address" {
36+ email_address = " aaa@iac-tf.cloud"
37+ email_sender_name = " aaa"
38+ }
Original file line number Diff line number Diff line change 1+ terraform {
2+ required_version = " >= 0.12"
3+ }
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ Provides a resource to create a ses template.
33
44Example Usage
55
6- Create a ses template instance
6+ Create a ses text template
77
88```hcl
99resource "tencentcloud_ses_template" "example" {
@@ -14,6 +14,38 @@ resource "tencentcloud_ses_template" "example" {
1414}
1515
1616```
17+
18+ Create a ses html template
19+
20+ ```hcl
21+ resource "tencentcloud_ses_template" "example" {
22+ template_name = "tf_example_ses_temp"
23+ template_content {
24+ html = <<-EOT
25+ <!DOCTYPE html>
26+ <html lang="en">
27+ <head>
28+ <meta charset="UTF-8">
29+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
30+ <title>mail title</title>
31+ </head>
32+ <body>
33+ <div class="container">
34+ <h1>Welcome to our service! </h1>
35+ <p>Dear user,</p>
36+ <p>Thank you for using Tencent Cloud:</p>
37+ <p><a href="https://cloud.tencent.com/document/product/1653">https://cloud.tencent.com/document/product/1653</a></p>
38+ <p>If you did not request this email, please ignore it. </p>
39+ <p><strong>from the iac team</strong></p>
40+ </div>
41+ </body>
42+ </html>
43+ EOT
44+ }
45+ }
46+
47+ ```
48+
1749Import
1850
1951ses template can be imported using the id, e.g.
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ Provides a resource to create a ses template.
1313
1414## Example Usage
1515
16- ### Create a ses template instance
16+ ### Create a ses text template
1717
1818``` hcl
1919resource "tencentcloud_ses_template" "example" {
@@ -24,6 +24,36 @@ resource "tencentcloud_ses_template" "example" {
2424}
2525```
2626
27+ ### Create a ses html template
28+
29+ ``` hcl
30+ resource "tencentcloud_ses_template" "example" {
31+ template_name = "tf_example_ses_temp"
32+ template_content {
33+ html = <<-EOT
34+ <!DOCTYPE html>
35+ <html lang="en">
36+ <head>
37+ <meta charset="UTF-8">
38+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
39+ <title>mail title</title>
40+ </head>
41+ <body>
42+ <div class="container">
43+ <h1>Welcome to our service! </h1>
44+ <p>Dear user,</p>
45+ <p>Thank you for using Tencent Cloud:</p>
46+ <p><a href="https://cloud.tencent.com/document/product/1653">https://cloud.tencent.com/document/product/1653</a></p>
47+ <p>If you did not request this email, please ignore it. </p>
48+ <p><strong>from the iac team</strong></p>
49+ </div>
50+ </body>
51+ </html>
52+ EOT
53+ }
54+ }
55+ ```
56+
2757## Argument Reference
2858
2959The following arguments are supported:
You can’t perform that action at this time.
0 commit comments