-
Notifications
You must be signed in to change notification settings - Fork 162
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
add data source enterprise project support #620
add data source enterprise project support #620
Conversation
fixes #587 |
"github.com/huaweicloud/golangsdk/openstack/eps/v1/enterpriseprojects" | ||
) | ||
|
||
func dataSourceEnterpriseProject() *schema.Resource { |
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.
use DataSourceEnterpriseProject to make it exportable.
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.
fixed
huaweicloud/provider.go
Outdated
@@ -207,6 +207,7 @@ func Provider() terraform.ResourceProvider { | |||
"huaweicloud_dms_az": dataSourceDmsAZV1(), | |||
"huaweicloud_dms_product": dataSourceDmsProductV1(), | |||
"huaweicloud_dms_maintainwindow": dataSourceDmsMaintainWindowV1(), | |||
"huaweicloud_enterprise_project": dataSourceEnterpriseProject(), |
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.
ditto.
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.
fixed
05400f5
to
5360643
Compare
docs/data-sources/eps.md
Outdated
subcategory: "Enterprise Project Management Service (EPS)" | ||
--- | ||
|
||
# huaweicloud\_Enterprise\_project |
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.
s/Enterprise/enterprise
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.
fixed
5360643
to
201749c
Compare
better to add a list of resources which support eps. |
e61a851
to
4123c6a
Compare
docs/data-sources/eps.md
Outdated
Service Name | Resource Name | ||
---- | --- | ||
VPC | huaweicloud_vpc<br>huaweicloud_vpc_eip<br>huaweicloud_vpc_bandwidth<br>huaweicloud_networking_secgroup | ||
ECS | huaweicloud_ecs_instance<br>huaweicloud_compute_instance |
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.
huaweicloud_ecs_instance is deprecated, just ignore it here.
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.
fixed
4123c6a
to
f8f5ce8
Compare
make testacc TEST='./huaweicloud' TESTARGS='-run TestAccEnterpriseProjectDataSource_basic'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./huaweicloud -v -run TestAccEnterpriseProjectDataSource_basic -timeout 360m
=== RUN TestAccEnterpriseProjectDataSource_basic
--- PASS: TestAccEnterpriseProjectDataSource_basic (10.96s)
PASS
ok github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud 11.001s