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 Data Source: azurerm_mssql_managed_database #27026

Merged
merged 8 commits into from
Nov 26, 2024

Conversation

theonlyames
Copy link
Contributor

@theonlyames theonlyames commented Aug 13, 2024

Community Note

  • Please vote on this PR by adding a 👍 reaction to the original PR to help the community and maintainers prioritize for review
  • Please do not leave comments along the lines of "+1", "me too" or "any updates", they generate extra noise for PR followers and do not help prioritize for review

Description

This PR adds a Data Source for the azurerm_mssql_managed_database resource.

My organization is prohibited from creating or deleting Azure Managed Instance resources through Terraform, but it still is useful for use to access the SQL MI databases as a Data Source as part of our multi-layer Terraform infrastructure.

PR Checklist

  • I have followed the guidelines in our Contributing Documentation.
  • I have checked to ensure there aren't other open Pull Requests for the same update/change.
  • I have checked if my changes close any open issues. If so please include appropriate closing keywords below.
  • I have updated/added Documentation as required written in a helpful and kind way to assist users that may be unfamiliar with the resource / data source.
  • I have used a meaningful PR title to help maintainers and other users understand this change and help prevent duplicate work.
    For example: “resource_name_here - description of change e.g. adding property new_property_name_here

Testing

  • My submission includes Test coverage as described in the Contribution Guide and the tests pass. (if this is not possible for any reason, please include details of why you did or could not add test coverage)

I lack a personal Azure subscription that I can use to perform acceptance tests.

Change Log

Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.

This is a (please select all that apply):

  • New Feature (ie adding a service, resource, or data source)

Related Issue(s)

N/A

Note

If this PR changes meaningfully during the course of review please update the title and description as required.

Copy link
Member

@stephybun stephybun left a comment

Choose a reason for hiding this comment

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

Thanks for this PR @theonlyames! This is off to a good start, I left some comments in-line, if you could take a look then we can get this moving and hopefully into the provider soon.

@theonlyames
Copy link
Contributor Author

Thanks for this PR @theonlyames! This is off to a good start, I left some comments in-line, if you could take a look then we can get this moving and hopefully into the provider soon.

Thanks for the feedback. I'll start on making those changes!

Copy link
Member

@stephybun stephybun left a comment

Choose a reason for hiding this comment

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

Apologies for taking a while to circle back to this @theonlyames. I took another look through and there are a few things that would be great to have fixed up. Once that's done I can kick off the tests and we should be able to get this merged.

@theonlyames
Copy link
Contributor Author

Apologies for taking a while to circle back to this @theonlyames. I took another look through and there are a few things that would be great to have fixed up. Once that's done I can kick off the tests and we should be able to get this merged.

I believe I have made all the changes you suggested. Thanks for the review.

Copy link
Member

@stephybun stephybun left a comment

Choose a reason for hiding this comment

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

@theonlyames I think the CI will be fixed by performing a rebase. If you can do that and get those checks green then this should be good to go!

theonlyames and others added 5 commits November 19, 2024 11:30
Removed Stray Comments

Replaced Parent Manged Instance Resource arguments with managed_instance_id

Cleanup Computed Args

Formatted Code

Updated Attributes
@theonlyames theonlyames force-pushed the mssqlmanageddatabase_datasource branch from 11c8d4d to 930e328 Compare November 19, 2024 16:36
@theonlyames
Copy link
Contributor Author

theonlyames commented Nov 19, 2024

@theonlyames I think the CI will be fixed by performing a rebase. If you can do that and get those checks green then this should be good to go!

I have rebased my branch off of the main branch.

@theonlyames
Copy link
Contributor Author

@theonlyames I think the CI will be fixed by performing a rebase. If you can do that and get those checks green then this should be good to go!

I have rebased my branch off of the main branch.

I believe I may have messed things up in the rebase. I will rework things

@github-actions github-actions bot added size/XL and removed size/L labels Nov 22, 2024
@theonlyames
Copy link
Contributor Author

@theonlyames I think the CI will be fixed by performing a rebase. If you can do that and get those checks green then this should be good to go!

I have rebased my branch off of the main branch.

I believe I may have messed things up in the rebase. I will rework things

Should hopefully be all set now.

…data_source_test.go


That makes sense. Thank you

Co-authored-by: stephybun <[email protected]>
Copy link
Member

@stephybun stephybun left a comment

Choose a reason for hiding this comment

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

Thanks @theonlyames LGTM 🌸

@stephybun stephybun merged commit 1196cc9 into hashicorp:main Nov 26, 2024
33 checks passed
@github-actions github-actions bot added this to the v4.12.0 milestone Nov 26, 2024
stephybun added a commit that referenced this pull request Nov 26, 2024
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants