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

Provide connection info in the ibm_database resource #5638

Open
lra opened this issue Sep 11, 2024 · 0 comments
Open

Provide connection info in the ibm_database resource #5638

lra opened this issue Sep 11, 2024 · 0 comments
Labels
enhancement service/Cloud Databases Issues related to Cloud Databases

Comments

@lra
Copy link

lra commented Sep 11, 2024

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

The attributes provided by data.ibm_database_connection should also be provided by ibm_database.

Because they are not, we have to use both ibm_database and data.ibm_database_connection and the resources that depends on data.ibm_database_connection get recreated each time there is a potential change in ibm_database, leading to data.ibm_database_connection stating "will be read during apply, depends on a resource or a module with changes pending".

This is a well known issue when attributes are only available from data sources, see hashicorp/terraform-provider-aws#29421 (comment)

The solution is to provide all attributes of data.ibm_database_connection on ibm_database so that the resource is enough to get the connection info.

New or Affected Resource(s)

  • ibm_database
  • data.ibm_database_connection
@github-actions github-actions bot added the service/Cloud Databases Issues related to Cloud Databases label Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement service/Cloud Databases Issues related to Cloud Databases
Projects
None yet
Development

No branches or pull requests

1 participant