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_iothub_enrichment and support azurerm_iothub.enrichment #9239

Merged
merged 10 commits into from
Jan 23, 2021

Conversation

royto
Copy link
Contributor

@royto royto commented Nov 10, 2020

resolves #5872

Copy link
Collaborator

@katbyte katbyte 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 @royto, overall this looks pretty good. However may i ask why you are allowing enrichments to be added both on the iot hub directly and separately with a new resoruce?

Type: schema.TypeList,
Elem: &schema.Schema{
Type: schema.TypeString,
},
Copy link
Collaborator

Choose a reason for hiding this comment

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

And validate these?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I do the same as it is done for route endpoints

),
},
data.ImportStep(),
},
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could we add a final basic step here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What do you mean by a final basic step ? Is some checks missing ?

To be honest, it is my first PR on terraform (and first time with Go). I took inspiration from what has been done on the test from iothub_route_resource_test.go

@royto
Copy link
Contributor Author

royto commented Dec 3, 2020

However may i ask why you are allowing enrichments to be added both on the iot hub directly and separately with a new resoruce?

This is what is done for others (routes, fallback routes, endpoints (EH, SB Topic, .., ...)

So I thought it is needed to be the same for enrichment.

For example, In my need I will create the enrichment using the dedicated resource. But for other case, it is simpler to use the iothub resource. IMHO, Both makes sense.

@royto
Copy link
Contributor Author

royto commented Dec 15, 2020

@katbyte is it Ok for you ?

@katbyte katbyte changed the title Add support for iot hub message-enrichment new resource azurerm_iothub_enrichment and support azurerm_iothub.enrichment Jan 14, 2021
Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

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

Thanks @royto - this LGTM 👍

@katbyte katbyte added this to the v2.43.0 milestone Jan 14, 2021
@katbyte
Copy link
Collaborator

katbyte commented Jan 14, 2021

@royto - once the merge conflicts are fixed up this is good to mege!

@royto
Copy link
Contributor Author

royto commented Jan 14, 2021

@katbyte rebase done. Conflicts fixed and Code updated to match new standard

@maxbog
Copy link
Contributor

maxbog commented Jan 21, 2021

@katbyte Any chance of including it in the next release? Would be great if we could use it in my team.

@tombuildsstuff tombuildsstuff modified the milestones: v2.44.0, v2.45.0 Jan 21, 2021
@katbyte katbyte merged commit 9a9d0b3 into hashicorp:master Jan 23, 2021
katbyte added a commit that referenced this pull request Jan 23, 2021
@ghost
Copy link

ghost commented Jan 28, 2021

This has been released in version 2.45.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.45.0"
}
# ... other configuration ...

@ghost
Copy link

ghost commented Feb 22, 2021

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 as resolved and limited conversation to collaborators Feb 22, 2021
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.

Support for iot hub message-enrichment
4 participants