Skip to content

Commit 5f7a631

Browse files
committed
fix: improve the example/complete
1 parent 6c63cb7 commit 5f7a631

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

examples/complete/main.tf

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
provider "alicloud" {
2+
region = "cn-zhangjiakou"
3+
}
4+
15
data "alicloud_zones" "default" {
26
}
37

@@ -43,8 +47,8 @@ resource "alicloud_ecs_key_pair" "default" {
4347
}
4448

4549
resource "alicloud_ram_role" "default" {
46-
name = "tf-ram-name-${random_integer.default.result}"
47-
document = var.document
50+
role_name = "tf-ram-name-${random_integer.default.result}"
51+
assume_role_policy_document = var.document
4852
}
4953

5054
resource "alicloud_kms_key" "kms" {

0 commit comments

Comments
 (0)