Skip to content

[Bug]: size property in AppService (TF) module required #1050

@kin0992

Description

@kin0992

What are you trying to do?

I am trying to create a new App Service using the Terraform module and according to the documentation, the size property should be omitted (it is computed starting from the use_case property).

Unfortunately, the plan failed if no size was provided. Here is the GitHub workflow run with the error: https://github.com/pagopa/dx-playground/actions/runs/19074199442/job/54485141723?pr=299#step:11:59

What's the expected result?

It should be possible to create the app service without defining the size

What happened instead?

The plan fails with


  on .terraform/modules/new_webapp_app_service/variables.tf line 72, in variable "size":
  72:     condition     = var.size == null || contains(local.sku_allowlist, var.size)
    ├────────────────
    │ while calling contains(list, value)
    │ var.size is null

Invalid value for "value" parameter: argument must not be null.```

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions