Skip to content
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

Merged
merged 1 commit into from Dec 3, 2021

Conversation

thisnihonglei
Copy link
Contributor

No description provided.

@thisnihonglei thisnihonglei force-pushed the emrcluster branch 3 times, most recently from b1f0bbf to 07d8e99 Compare December 2, 2021 03:02
"enable_details": "true",
}),
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Status的过滤?

Copy link
Contributor Author

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},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

87行的校验值在这里加一下

Copy link
Contributor Author

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 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

host_group 留2个就行

Copy link
Contributor Author

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

注释去掉

Copy link
Contributor Author

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",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

host_group 留2个就行

Copy link
Contributor Author

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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resource Group Id

Copy link
Contributor Author

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.
Copy link
Contributor

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.

Copy link
Contributor Author

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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

格式整体缩进注意下

Copy link
Contributor Author

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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The VPC ID.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已改

website/docs/d/emr_clusters.html.markdown Outdated Show resolved Hide resolved
@thisnihonglei thisnihonglei force-pushed the emrcluster branch 4 times, most recently from 13fd193 to 4ee91c5 Compare December 2, 2021 10:35
resource "alicloud_vpc" "vpc" {
vpc_name = "${var.name}"
cidr_block = "172.16.0.0/12"
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

用 datasource 查

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已改成用用 datasource 查

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants