File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed
examples/tencentcloud-kms Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ provider "tencentcloud" {
2+ region = " ap-guangzhou"
3+ }
4+
5+ resource "tencentcloud_kms_external_key" "external_key" {
6+ alias = " tf-kms-external-key"
7+ description = " create a CMK and import key_material_base64."
8+ wrapping_algorithm = " RSAES_PKCS1_V1_5"
9+ key_material_base64 = " MTIzMTIzMTIzMTIzMTIzQQ=="
10+ is_enabled = false
11+
12+ tags = {
13+ " test-tag" : " test"
14+ }
15+ }
16+
17+ resource "tencentcloud_kms_key" "key" {
18+ alias = " tf-kms-key"
19+ description = " create a CMK generated by KMS."
20+ key_rotation_enabled = false
21+ is_enabled = true
22+
23+ tags = {
24+ " test-tag" : " test"
25+ }
26+ }
27+
28+ data "tencentcloud_kms_keys" "keys" {
29+ key_usage = " ALL"
30+ origin = " EXTERNAL"
31+ }
Original file line number Diff line number Diff line change 1+ terraform {
2+ required_version = " >= 0.12"
3+ }
You can’t perform that action at this time.
0 commit comments