Skip to content

Commit eb2c6cf

Browse files
committed
add changelog
1 parent 3555c7b commit eb2c6cf

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

.changelog/3353.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
resource/tencentcloud_key_pair: add computed attr `private_key` and `create_time`
3+
```

tencentcloud/services/cvm/resource_tc_key_pair.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,15 @@ Example Usage
44

55
```hcl
66
resource "tencentcloud_key_pair" "foo" {
7-
key_name = "terraform_test"
7+
key_name = "terraform_test"
8+
}
9+
10+
output "private_key" {
11+
value = tencentcloud_key_pair.foo.private_key
12+
}
13+
14+
output "create_time" {
15+
value = tencentcloud_key_pair.foo.created_time
816
}
917
1018
resource "tencentcloud_key_pair" "foo1" {

website/docs/r/key_pair.html.markdown

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ resource "tencentcloud_key_pair" "foo" {
1818
key_name = "terraform_test"
1919
}
2020
21+
output "private_key" {
22+
value = tencentcloud_key_pair.foo.private_key
23+
}
24+
25+
output "create_time" {
26+
value = tencentcloud_key_pair.foo.created_time
27+
}
28+
2129
resource "tencentcloud_key_pair" "foo1" {
2230
key_name = "terraform_test"
2331
public_key = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDjd8fTnp7Dcuj4mLaQxf9Zs/ORgUL9fQxRCNKkPgP1paTy1I513maMX126i36Lxxl3+FUB52oVbo/FgwlIfX8hyCnv8MCxqnuSDozf1CD0/wRYHcTWAtgHQHBPCC2nJtod6cVC3kB18KeV4U7zsxmwFeBIxojMOOmcOBuh7+trRw=="

0 commit comments

Comments
 (0)