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 Resource - azurerm_servicebus_queue_authorization_rule #1543

Merged
merged 5 commits into from
Jul 15, 2018

Conversation

katbyte
Copy link
Collaborator

@katbyte katbyte commented Jul 11, 2018

Also adds additional validation to other service bus resources.

@katbyte katbyte changed the title New resource - resource_arm_servicebus_queue_authorization_rule New Resource - resource_arm_servicebus_queue_authorization_rule Jul 11, 2018
Copy link
Contributor

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

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

otherwise LGTM 👍


## Import

ServiceBus Namespace authorization rules can be imported using the `resource id`, e.g.
Copy link
Contributor

Choose a reason for hiding this comment

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

ServiceBus Namespace -> ServiceBus Queue


The following attributes are exported:

* `id` - The ServiceBus Topic ID.
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should be The ID of the ServiceBus Queue Authorization Rule?


* `secondary_key` - The Secondary Key for the ServiceBus Namespace authorization Rule.

* `secondary_connection_string` - The Secondary Connection String for the ServiceBus Namespace authorization Rule.
Copy link
Contributor

Choose a reason for hiding this comment

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

Namespace -> Queue in all 4 of these?


* `namespace_name` - (Required) Specifies the name of the ServiceBus namespace. Changing this forces a new resource to be created.

* `namespace_name` - (Required) Specifies the name of the ServiceBus queue. Changing this forces a new resource to be created.
Copy link
Contributor

Choose a reason for hiding this comment

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

this should be queue_name?


* `send` - (Optional) Grants send access to this this Authorization Rule. Defaults to `false`.

* `manage` - (Optional) Grants manage access to this this Authorization Rule. When this property is `true` - both `listen` and `send` must be too. Defaults to `false`.
Copy link
Contributor

Choose a reason for hiding this comment

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

this this in all 3 of these

d.SetId("")
return nil
}
return fmt.Errorf("Error making Read request on Azure ServiceBus Queue Authorization Rule %s: %+v", name, err)
Copy link
Contributor

Choose a reason for hiding this comment

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

can we raise the other info here? IMO the names are likely to be used across resources

@@ -73,6 +87,67 @@ func FlattenServiceBusAuthorizationRuleRights(rights *[]servicebus.AccessRights)
}

//shared schema
func MergeSchema(a map[string]*schema.Schema, b map[string]*schema.Schema) map[string]*schema.Schema {
Copy link
Contributor

Choose a reason for hiding this comment

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

since this isn't being used outside of this package, this could probably become a private method?

@tombuildsstuff
Copy link
Contributor

Tests pass:

screenshot 2018-07-15 at 13 37 01

@tombuildsstuff tombuildsstuff changed the title New Resource - resource_arm_servicebus_queue_authorization_rule New Resource - azurerm_servicebus_queue_authorization_rule Jul 15, 2018
@tombuildsstuff tombuildsstuff merged commit b1fcd20 into master Jul 15, 2018
@tombuildsstuff tombuildsstuff deleted the f-servicebus-authrules branch July 15, 2018 11:38
tombuildsstuff added a commit that referenced this pull request Jul 15, 2018
@ghost
Copy link

ghost commented Mar 30, 2020

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 👉 hashibot-feedback@hashicorp.com. Thanks!

@ghost ghost locked and limited conversation to collaborators Mar 30, 2020
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.

None yet

2 participants