diff --git a/CHANGELOG.md b/CHANGELOG.md index cd8bd61952..17db5b0f2c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,7 @@ ## 1.22.1 (Unreleased) +BUG FIXES: +* Fixed docs of CAM + ## 1.22.0 (November 05, 2019) FEATURES: @@ -69,6 +72,7 @@ BUG FIXES: * Resource: `tencentcloud_gaap_http_domain` fix sometimes can't enable realserver auth + ## 1.20.1 (October 08, 2019) ENHANCEMENTS: diff --git a/tencentcloud/resource_tc_cam_role_policy_attachment.go b/tencentcloud/resource_tc_cam_role_policy_attachment.go index 9953d5b8ce..9b2ce2eaaa 100644 --- a/tencentcloud/resource_tc_cam_role_policy_attachment.go +++ b/tencentcloud/resource_tc_cam_role_policy_attachment.go @@ -4,8 +4,8 @@ Provides a resource to create a CAM role policy attachment. Example Usage ```hcl -resource "tencentcloud_cam_role_attachment" "foo" { - group_id = "4611686018427922725" +resource "tencentcloud_cam_role_policy_attachment" "foo" { + role_id = "4611686018427922725" policy_id = "26800353" } ``` @@ -15,7 +15,7 @@ Import CAM role policy attachment can be imported using the id, e.g. ``` -$ terraform import tencentcloud_cam_role_attachment.foo 4611686018427922725#26800353 +$ terraform import tencentcloud_cam_role_policy_attachment.foo 4611686018427922725#26800353 ``` */ package tencentcloud diff --git a/website/docs/r/cam_role_policy_attachment.html.markdown b/website/docs/r/cam_role_policy_attachment.html.markdown index 9be883b63d..47f2a86f75 100644 --- a/website/docs/r/cam_role_policy_attachment.html.markdown +++ b/website/docs/r/cam_role_policy_attachment.html.markdown @@ -13,8 +13,8 @@ Provides a resource to create a CAM role policy attachment. ## Example Usage ```hcl -resource "tencentcloud_cam_role_attachment" "foo" { - group_id = "4611686018427922725" +resource "tencentcloud_cam_role_policy_attachment" "foo" { + role_id = "4611686018427922725" policy_id = "26800353" } ``` @@ -41,6 +41,6 @@ In addition to all arguments above, the following attributes are exported: CAM role policy attachment can be imported using the id, e.g. ``` -$ terraform import tencentcloud_cam_role_attachment.foo 4611686018427922725#26800353 +$ terraform import tencentcloud_cam_role_policy_attachment.foo 4611686018427922725#26800353 ```