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

add datasource for each resource #3385

Open
rucciva opened this issue Sep 6, 2023 · 5 comments
Open

add datasource for each resource #3385

rucciva opened this issue Sep 6, 2023 · 5 comments
Labels
enhancement waiting-response waiting response to close the issue

Comments

@rucciva
Copy link

rucciva commented Sep 6, 2023

Current Terraform Version

Terraform v1.5.4
on darwin_amd64

Use-cases

we are currently managing the huaweicloud resources using the web console. Our team has not yet ready to fully manage them using terraform, but we are currently trying to use terraform to backup the resource configuration mainly using data source and saving them to yaml files commited to git. This unfortunately can't be fully functional since not all resource on huawei cloud has data source, e.g. waf' website, private nat gateway, and several. We also need the data source that can return all resources, similar to huaweicloud_vpcs

Attempted Solutions

Proposal

Create all data source for each resource including data source that can returns all resource, similar to huaweicloud_vpcs

References

@ShiChangkuo
Copy link
Collaborator

@rucciva we are working on this, but it can not guarantee that all resources have the corresponding data sources.

can you give us a list of missing data sources?

@ShiChangkuo ShiChangkuo added the waiting-response waiting response to close the issue label Feb 1, 2024
@rucciva
Copy link
Author

rucciva commented Feb 1, 2024

hi @ShiChangkuo , thanks for responding,
i think it was missing list of:

  • nat gateway
  • private nat gateway
  • waf domains
  • waf certificates

but i now see it in the current version of terraform provider, and only missing waf certificates i guess.

@ShiChangkuo
Copy link
Collaborator

can data.huaweicloud_waf_certificate meet your needs?
if not, we can implement a data source to query a list of WAF certificates.

@rucciva
Copy link
Author

rucciva commented Feb 1, 2024

i think i still need to get the list of all WAF certificates, because i can't find/derive it from other data sources,

@rucciva
Copy link
Author

rucciva commented Feb 28, 2024

hi @ShiChangkuo , can we also get data source for iam role assignment, so that we can view all permissions granted to each iam user/group?
thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement waiting-response waiting response to close the issue
Projects
None yet
Development

No branches or pull requests

2 participants