-
Notifications
You must be signed in to change notification settings - Fork 533
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Datasource alicloud_emr_clusters
#4301
Conversation
b1f0bbf
to
07d8e99
Compare
"enable_details": "true", | ||
}), | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Status的过滤?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
有StatusList的过滤了,所以没加
Type: schema.TypeList, | ||
Optional: true, | ||
ForceNew: true, | ||
Elem: &schema.Schema{Type: schema.TypeString}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
87行的校验值在这里加一下
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已加
|
||
cluster_type = data.alicloud_emr_main_versions.default.main_versions.0.cluster_types.0 | ||
|
||
host_group { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
host_group 留2个就行
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
每一个houst_group的类型不一样,分别是TASK,CORE,MASTER所以是3个
vswitch_name = "${var.name}" | ||
} | ||
|
||
// Ram role Resource for Module |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
注释去掉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已去掉
"clusters.0.expired_time": CHECKSET, | ||
"clusters.0.extra_info": CHECKSET, | ||
"clusters.0.high_availability_enable": CHECKSET, | ||
"clusters.0.host_group_list.#": "3", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
host_group 留2个就行
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
每一个houst_group的类型不一样,分别是TASK,CORE,MASTER所以是3个
* `machine_type` - (Optional, ForceNew) The host type of the cluster. The default is ECS. Valid values: `DOCKER`, `ECS`, `PYHSICAL_MACHINE`. | ||
* `name_regex` - (Optional, ForceNew) A regex string to filter results by Cluster name. | ||
* `output_file` - (Optional) File name where to save data source results (after running `terraform plan`). | ||
* `resource_group_id` - (Optional, ForceNew) The ResourceGroupId. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resource Group Id
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已改
* `output_file` - (Optional) File name where to save data source results (after running `terraform plan`). | ||
* `resource_group_id` - (Optional, ForceNew) The ResourceGroupId. | ||
* `status` - (Optional, ForceNew) The cluster status. Valid values: `ABNORMAL`, `CREATE_FAILED`, `CREATING`, `IDLE`, `RELEASED`, `RELEASE_FAILED`, `RELEASING`, `RUNNING`, `WAIT_FOR_PAY`. | ||
* `status_list` - (Optional, ForceNew) The status list. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Valid values: ABNORMAL
, CREATE_FAILED
, CREATING
, IDLE
, RELEASED
, RELEASE_FAILED
, RELEASING
, RUNNING
, WAIT_FOR_PAY
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已加
|
||
* `names` - A list of Cluster names. | ||
* `clusters` - A list of Emr Clusters. Each element contains the following attributes: | ||
* `access_info` - Cluster connection information. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
格式整体缩进注意下
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已注意
* `tags` - A mapping of tags to assign to the resource. | ||
* `user_defined_emr_ecs_role` - The EMR permission name used. | ||
* `user_id` - The user ID. | ||
* `vpc_id` - VPC ID. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The VPC ID.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已改
13fd193
to
4ee91c5
Compare
resource "alicloud_vpc" "vpc" { | ||
vpc_name = "${var.name}" | ||
cidr_block = "172.16.0.0/12" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
用 datasource 查
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已改成用用 datasource 查
4ee91c5
to
9768bdc
Compare
9768bdc
to
40ab8d5
Compare
No description provided.