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

CDN Endpoint Delivery Rules #6163

Merged
merged 100 commits into from
Apr 16, 2020

Conversation

r0bnet
Copy link
Contributor

@r0bnet r0bnet commented Mar 18, 2020

Didn't see a request for that yet but we personally have some use cases for it. It implements the CDN rules engine that Standard_Microsoft CDN profiles offer.

Documentation: https://docs.microsoft.com/en-us/rest/api/cdn/endpoints/create#deliverypolicy

r0bnet and others added 30 commits March 1, 2020 16:07
…l redirect action and request scheme condition
Fixed Usage definition: resource_group >> resource_group_name
This tools intended to aid with building new resources, in particular by scaffolding
the documentation from the resource definition.

Note: this is intentionally scaffolding - not full codegen - since documentation
should always require human review for clarity / grammar.
The temporary patch in the provider/test suite allows for us to gradually add provider
blocks to the test suite, rather than doing it in a big-bang (and breaking open PR's).

Unfortunately this workaround was unintentionally available in release binaries, as such
this commit changes this patch to only work for test providers rather than released versions
since this isn't intended to be used by users.

Instead we require that Provider blocks and Feature blocks are both specified to be explicit
about which instance of a provider is being used when provisioning resources.
@andymac4182
Copy link

Any chance this could make it into the next release?

@tombuildsstuff tombuildsstuff self-assigned this Apr 8, 2020
@tombuildsstuff tombuildsstuff added this to the v2.5.0 milestone Apr 8, 2020
@katbyte katbyte modified the milestones: v2.5.0, v2.6.0 Apr 9, 2020
@hashicorp hashicorp deleted a comment Apr 9, 2020
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.

hey @r0bnet

Thanks for this PR :)

Taking a look through I've left some comments inline but this mostly LGTM - I hope you don't mind but I'm going to push a few commits to fix up the pending comments/refactor this to match the other resources, but 🤞 we can get this into the v2.6 release :)

Thanks!

azurerm/helpers/validate/cdn.go Show resolved Hide resolved
azurerm/internal/services/cdn/resource_arm_cdn_endpoint.go Outdated Show resolved Hide resolved
azurerm/internal/services/cdn/resource_arm_cdn_endpoint.go Outdated Show resolved Hide resolved
website/docs/r/cdn_endpoint.html.markdown Outdated Show resolved Hide resolved
website/docs/r/cdn_endpoint.html.markdown Outdated Show resolved Hide resolved
@tombuildsstuff
Copy link
Contributor

Ignoring quota issues in Azure, the tests pass 👍

@tombuildsstuff tombuildsstuff merged commit a6ccfb3 into hashicorp:master Apr 16, 2020
tombuildsstuff added a commit that referenced this pull request Apr 16, 2020
@ghost
Copy link

ghost commented Apr 16, 2020

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

@krzyszt0fd
Copy link

Thank you! I was waiting for this feature. I found one small issue when working with it. Terraform plan always shows that a request_header_condition is about to be added even if it has been added previously and there were no changes in between. I used some other actions and conditions and they work fine.

@r0bnet r0bnet deleted the cdn-endpoint-delivery-rules branch April 20, 2020 11:45
@r0bnet
Copy link
Contributor Author

r0bnet commented Apr 20, 2020

Hey @krzyszt0fd,
can you please create an issue for your problem with an example? I'll have a look at it and hopefully fix it asap. Thanks.

@krzyszt0fd
Copy link

#6539

@ghost
Copy link

ghost commented May 16, 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 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators May 16, 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.

8 participants