# How to create api connection in logic app through terraform script

**URL:** <https://discuss.hashicorp.com/t/how-to-create-api-connection-in-logic-app-through-terraform-script/36532>\
**Category:** Terraform\
**Created:** [March 3, 2022, 3:49pm UTC](https://discuss.hashicorp.com/t/how-to-create-api-connection-in-logic-app-through-terraform-script/36532 "2022-03-03T15:49:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhinavssingh](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/abhinavssingh/32/26418_2.png) [@abhinavssingh](https://discuss.hashicorp.com/u/abhinavssingh)\
**Post date:** [March 3, 2022, 3:49pm UTC](https://discuss.hashicorp.com/t/how-to-create-api-connection-in-logic-app-through-terraform-script/36532/1 "2022-03-03T15:49:28Z")

</div>

Hi, i am trying to create api connection through parameter options as per [here](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/logic_app_workflow) but unable to do so and getting different error

```auto
parameters = { "office365" = "resource id from Azure" } Getting Office365 is not defined`
`"parameters": { "<office365>": { "type": "String", "defaultValue": "resource id from Azure", } }, getting Inappropriate value for attribute "parameters": element "office365": string required.

```

Have tried multiple combinations but still getting these two error. Could you please help me out how to create API connection and associate with action?
