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

Support for ExposedPort on azurerm_container_app #23738

Closed
1 task done
SpartakusMd opened this issue Oct 31, 2023 · 1 comment · Fixed by #23752
Closed
1 task done

Support for ExposedPort on azurerm_container_app #23738

SpartakusMd opened this issue Oct 31, 2023 · 1 comment · Fixed by #23752

Comments

@SpartakusMd
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.

Description

Currently the exposed port on azurerm_container_app is missing. It is needed when you want to expose a different port than the target port. It is available if the transport is TCP. It is already supported but not documented (would be nice to document it). It was made possible when the API version was updated in #22804.

image

The latest version of the SDK is being used and the field is available already https://github.com/hashicorp/go-azure-sdk/blob/2f16ee0d84fbe0ebc235a86357d6b421190f6736/resource-manager/containerapps/2023-05-01/containerapps/model_ingress.go

New or Affected Resource(s)/Data Source(s)

azurerm_container_app

Potential Terraform Configuration

resource "azurerm_container_app" "example" {
  name                           = "${var.resource_prefix}-example"
  container_app_environment_id   = azurerm_container_app_environment.example.id
  resource_group_name            = azurerm_resource_group.example.name
  revision_mode                  = "Single"

  ingress {
    external_enabled = true
    target_port      = 9000
    exposed_port     = 9090
    transport        = "tcp"
  }
}

References

No response

Copy link

github-actions bot commented May 2, 2024

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 have found a problem that seems similar to this, 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 May 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants