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_app_service_slot_custom_hostname_binding #13097

Merged

Conversation

haraldatbmw
Copy link
Contributor

@haraldatbmw haraldatbmw commented Aug 23, 2021

This PR introduces a new resource azurerm_app_service_slot_custom_hostname_binding for adding custom hostname bindings for App Service Slots.

Fixes: #11295

@haraldatbmw
Copy link
Contributor Author

@jackofallops Please proceed your review here.

@haraldatbmw haraldatbmw changed the title New resource azurerm_app_service_slot_custom_hostname_binding New resource azurerm_app_service_slot_custom_hostname_binding Aug 23, 2021
Copy link
Member

@jackofallops jackofallops left a comment

Choose a reason for hiding this comment

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

Hi @haraldatbmw - Thanks for the continued work here. I've left a few more comments below.
For info - Testing of this resource will require us to get a few things set up to support it in our test subscription, but I'll get onto that asap to be able to run the tests.

@haraldatbmw
Copy link
Contributor Author

@jackofallops Any chance to include this into 2.77.0?

@jackofallops
Copy link
Member

Hi @haraldatbmw - apologies for the delay on this one, I'm looking into it next. Some changes in Azure Managed Certs have complicated matters, so I need to re-review from the beginning based on the new information to ensure this new resource will work as intended. I appreciate this is less than ideal, but please bear with me, I'm going to do my best to get it into 2.80.

@jackofallops jackofallops added this to the v2.80.0 milestone Oct 1, 2021
@katbyte katbyte modified the milestones: v2.80.0, v2.81.0, v2.82.0 Oct 8, 2021
@katbyte katbyte modified the milestones: v2.82.0, v2.83.0 Oct 21, 2021
@github-actions
Copy link

This functionality has been released in v2.83.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@katbyte katbyte modified the milestones: v2.83.0, v2.84.0 Oct 29, 2021
@katbyte katbyte modified the milestones: v2.84.0, v2.85.0 Nov 5, 2021
@haraldatbmw
Copy link
Contributor Author

@jackofallops Is there anything I can do to help releasing this PR?

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 @haraldatbmw

Thanks for pushing those changes, apologies for the delayed re-review here.

I've taken a look through and left a handful of minor comments inline, if we can fix those up then this should be otherwise good to merge 👍

Thanks!

@katbyte katbyte removed this from the v2.85.0 milestone Nov 12, 2021
@jackofallops jackofallops modified the milestones: v2.87.0, v2.88.0 Nov 26, 2021
@jackofallops
Copy link
Member

Hi @haraldatbmw - Apologies again for the continued delays here. I hope you don't mind, but I've made the above change the thumbprint and updated the tests to remove the app-service re-use issue, and allow us to run in our normal CI process. These are passing successfully. (I remove the "multiple" test as it didn't appear to provider any additional value over the basic test?)

image

@haraldatbmw
Copy link
Contributor Author

@jackofallops Thanks for finalizing this PR.

@tombuildsstuff tombuildsstuff modified the milestones: v2.88.0, v2.89.0 Dec 2, 2021
@katbyte katbyte modified the milestones: v2.89.0, v2.90.0 Dec 10, 2021
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 @haraldatbmw and @jackofallops, one minor comment on an error message, it's no biggie though. LGTM 👍🏼

@jackofallops jackofallops force-pushed the app_service_slot_custom_hostname3 branch from 84e0e8d to f071a13 Compare December 15, 2021 14:46
@katbyte katbyte modified the milestones: v2.90.0, v2.91.0 Dec 17, 2021
@jackofallops jackofallops dismissed stale reviews from katbyte and themself January 6, 2022 14:52

stale

@jackofallops jackofallops merged commit 8ec3e57 into hashicorp:main Jan 6, 2022
jackofallops added a commit that referenced this pull request Jan 6, 2022
@github-actions
Copy link

github-actions bot commented Jan 7, 2022

This functionality has been released in v2.91.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@goldenmami
Copy link

I have an issue when I use azurerm_app_service_custom_hostname_binding for slots. below my code + error message:
resource "azurerm_app_service_slot_custom_hostname_binding" "custom_domain_bindings2" {
hostname = "XXXXXX.com"
app_service_slot_id = "/subscriptions/xxxxxxxxx/resourceGroups/xxxxxx/providers/Microsoft.Web/sites/xxxxxxxx"
thumbprint = data.azurerm_key_vault_certificate.intra-cert.thumbprint
ssl_state = "SniEnabled"
}

resource "azurerm_app_service_managed_certificate" "custom_domain_bindings2" {
custom_hostname_binding_id = azurerm_app_service_slot_custom_hostname_binding.custom_domain_bindings2.id #doesn't work !!!!

custom_hostname_binding_id = "/subscriptions/xxxxxxxxx/resourceGroups/xxxxxx/providers/Microsoft.Web/sites/xxxxxxxx/hostNameBindings/xxxxxxx.com" #stay infinite time to create the binding

}

can not parse "custom_hostname_binding_id" as App Service Custom Hostname ID: ID contained more segments than required: "/subscriptions/xxxxxxxxx/resourceGroups/xxxxxx/providers/Microsoft.Web/sites/xxxxxxxx/**slots/xxxxxxxxx/**hostNameBindings/xxxxxxxxxxx.com"

when I put custom_hostname_binding_id without /slots/xxxxxxxxx/ #stay infinite time to create the binding

@github-actions
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 Feb 19, 2022
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 custom hostname binding for slots in web apps
6 participants