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

[CES-582] Add info endpoint on Azure Function #20

Merged
merged 35 commits into from
Dec 17, 2024

Conversation

kin0992
Copy link
Contributor

@kin0992 kin0992 commented Dec 10, 2024

Configure the Azure Function and add the firs endpoint.

Once you run the application, go to the /info and the function responds.

Copy link

changeset-bot bot commented Dec 10, 2024

🦋 Changeset detected

Latest commit: 0baa148

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
to-do-api Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@kin0992 kin0992 marked this pull request as ready for review December 10, 2024 09:26
@kin0992 kin0992 requested a review from a team as a code owner December 10, 2024 09:26
@kin0992 kin0992 changed the title [CES-582] Create OpenAPI [CES-582] Expose info endpoint on Azure Function Dec 11, 2024
@kin0992 kin0992 changed the title [CES-582] Expose info endpoint on Azure Function [CES-582] Add info endpoint on Azure Function Dec 11, 2024
@kin0992 kin0992 marked this pull request as draft December 11, 2024 15:55
@kin0992 kin0992 marked this pull request as ready for review December 11, 2024 16:06
@kin0992 kin0992 force-pushed the features/create-api-azure-function branch from b9f331e to 7cc5acf Compare December 11, 2024 16:22
@kin0992 kin0992 force-pushed the features/create-api-azure-function branch from c0a1b08 to e59e2ae Compare December 12, 2024 10:04
README.md Outdated Show resolved Hide resolved
apps/to-do-api/src/config.ts Outdated Show resolved Hide resolved
@kin0992 kin0992 requested a review from a team as a code owner December 16, 2024 08:29
@github-actions github-actions bot added the infra label Dec 16, 2024
apps/to-do-api/src/adapters/azure/functions/info.ts Outdated Show resolved Hide resolved
apps/to-do-api/package.json Outdated Show resolved Hide resolved
Copy link
Contributor

📖 Terraform Plan ('infra/resources/dev') - success

Terraform Plan
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  ~ update in-place

Terraform will perform the following actions:

  # module.app_service.azurerm_linux_web_app.this will be updated in-place
  ~ resource "azurerm_linux_web_app" "this" {
        id                                             = "/subscriptions/d7de83e0-0571-40ad-b63a-64c942385eae/resourceGroups/dx-d-itn-test-rg-01/providers/Microsoft.Web/sites/dx-d-itn-playground-fe-app-01"
        name                                           = "dx-d-itn-playground-fe-app-01"
        tags                                           = {
            "CostCenter"  = "TS700 - ENGINEERING"
            "CreatedBy"   = "Terraform"
            "Environment" = "Dev"
            "Owner"       = "DevEx"
            "Scope"       = "Dynatrace PoC"
        }
        # (25 unchanged attributes hidden)

      ~ site_config {
          ~ health_check_path                             = "/health" -> "/info"
            # (28 unchanged attributes hidden)

            # (1 unchanged block hidden)
        }

        # (1 unchanged block hidden)
    }

  # module.function_app.azurerm_linux_function_app.this will be updated in-place
  ~ resource "azurerm_linux_function_app" "this" {
        id                                             = "/subscriptions/d7de83e0-0571-40ad-b63a-64c942385eae/resourceGroups/dx-d-itn-test-rg-01/providers/Microsoft.Web/sites/dx-d-itn-playground-be-func-01"
        name                                           = "dx-d-itn-playground-be-func-01"
        tags                                           = {
            "CostCenter"  = "TS700 - ENGINEERING"
            "CreatedBy"   = "Terraform"
            "Environment" = "Dev"
            "Owner"       = "DevEx"
            "Scope"       = "Dynatrace PoC"
        }
        # (32 unchanged attributes hidden)

      ~ site_config {
          ~ health_check_path                             = "/health" -> "/info"
            # (32 unchanged attributes hidden)

            # (1 unchanged block hidden)
        }

        # (2 unchanged blocks hidden)
    }

Plan: 0 to add, 2 to change, 0 to destroy.

─────────────────────────────────────────────────────────────────────────────

Note: You didn't use the -out option to save this plan, so Terraform can't
guarantee to take exactly these actions if you run "terraform apply" now.

@kin0992 kin0992 merged commit f399dc9 into main Dec 17, 2024
5 checks passed
@kin0992 kin0992 deleted the features/create-api-azure-function branch December 17, 2024 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants