-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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 resources: azurerm_lighthouse_definition
and 'azurerm_lighthouse_assignment'
#6560
New resources: azurerm_lighthouse_definition
and 'azurerm_lighthouse_assignment'
#6560
Conversation
azurerm/internal/services/managedservices/tests/data_source_registration_definition_test.go
Outdated
Show resolved
Hide resolved
...om/Azure/azure-sdk-for-go/services/managedservices/mgmt/2019-06-01/managedservices/client.go
Show resolved
Hide resolved
It's not entire clear what a |
azurerm_registration_definition
and 'azurerm_registration_assignment'azurerm_registration_definition
and 'azurerm_registration_assignment'
I have used the naming conventions used in the SDK and Azure REST docs. However, I`m open to changing it to azurerm_lighthouse_* if that is recommended. Let me know. |
@katbyte - This PR is ready for your review. Please provide your feedback when time permits. |
@katbyte - Just checking if I can answer any questions you may have. |
@Humoiz - the SDK & API often leave much to be desired in their clarity of naming. Could we update these to all use lighthouse including the service package name? thanks! |
@katbyte - I have renamed from registration_* to lighthouse_*, also updated the function names, etc. Let me know how does it looks to you now. |
@katbyte -I have addressed your initial comments. I need to use these new resources in about two weeks. Can you please provide your feedback? |
@katbyte -The build is failing and I am not sure how to fix it. I tried 'go mod vendor' command and it deletes several folders, not sure if I am missing anything. Any pointers? |
azurerm_registration_definition
and 'azurerm_registration_assignment'azurerm_lighthouse_definition
and 'azurerm_lighthouse_assignment'
@Humoiz - i merged master and fixed up the vendor folder 🙂 |
Thank you!! :) |
azurerm/internal/services/managedservices/resource_arm_lighthouse_assignment.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/managedservices/data_source_lighthouse_definition.go
Outdated
Show resolved
Hide resolved
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.
Thanks @Humoiz, i;ve left some comments mostly around naming - otherwise this is looking good and should get into the release next week!
azurerm/internal/services/managedservices/data_source_lighthouse_definition.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/managedservices/resource_arm_lighthouse_assignment.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/managedservices/resource_arm_lighthouse_assignment.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/managedservices/resource_arm_lighthouse_assignment.go
Outdated
Show resolved
Hide resolved
Hi @Humoiz |
add subscription_id validation update lighthouse_definition to have definable scope (subscription)
Thank you. I`m glad that this work is getting the traction again. |
Thanks @Humoiz - I think I'm done with my changes, and I've tested all the scenarios I can think of manually, and we'll turn that into acceptance tests when we complete the binary testing work. I'm going to get someone else from the team to double check my work, and if that gets the all clear we'll get this merged asap. |
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.
Some minor comments whilst passing through but this otherwise LGTM 👍🏻
azurerm/internal/services/lighthouse/resource_arm_lighthouse_assignment.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/lighthouse/resource_arm_lighthouse_assignment.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/lighthouse/resource_arm_lighthouse_assignment.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/lighthouse/resource_arm_lighthouse_assignment.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/lighthouse/resource_arm_lighthouse_assignment.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/lighthouse/resource_arm_lighthouse_assignment.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/lighthouse/resource_arm_lighthouse_assignment.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/lighthouse/resource_arm_lighthouse_definition.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/lighthouse/tests/resource_arm_lighthouse_assignment_test.go
Show resolved
Hide resolved
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.
LGTM!
This has been released in version 2.28.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example: provider "azurerm" {
version = "~> 2.28.0"
}
# ... other configuration ... |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Implementing features mentioned in the feature request: #3941
This PR adds following new resources and its documentation:
azurerm_lighthouse_definition
azurerm_lighthouse_assignment
Data source:
azurerm_lighthouse_definition
The resources in this PR needs multiple tenant to run the scenario. Tenant ID and Object ID of the user, usergroup or service principal is needed from the second tenant. I ran the tests after setting the environment variable ARM_TENANT_ID_ALT & ARM_PRINCIPAL_ID_ALT_TENANT locally.
Here is the azure docs which explains how to setup these resources:
https://docs.microsoft.com/en-us/azure/lighthouse/how-to/onboard-customer#gather-tenant-and-subscription-details
All the tests are passing: