Azure Spring Cloud App Cosmosdb Association

This page shows how to write Terraform and Azure Resource Manager for Spring Cloud App Cosmosdb Association and write them securely.

azurerm_spring_cloud_app_cosmosdb_association (Terraform)

The App Cosmosdb Association in Spring Cloud can be configured in Terraform with the resource name azurerm_spring_cloud_app_cosmosdb_association. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

An example could not be found in GitHub.

Review your Terraform file for Azure best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

The following arguments are supported:

  • name - (Required) Specifies the name of the Spring Cloud Application Association. Changing this forces a new resource to be created.

  • spring_cloud_app_id - (Required) Specifies the ID of the Spring Cloud Application where this Association is created. Changing this forces a new resource to be created.

  • cosmosdb_account_id - (Required) Specifies the ID of the CosmosDB Account. Changing this forces a new resource to be created.

  • api_type - (Required) Specifies the api type which should be used when connecting to the CosmosDB Account. Possible values are cassandra, gremlin, mongo, sql or table. Changing this forces a new resource to be created.

  • cosmosdb_access_key - (Required) Specifies the CosmosDB Account access key.

  • cosmosdb_cassandra_keyspace_name - (Optional) Specifies the name of the Cassandra Keyspace which the Spring Cloud App should be associated with. Should only be set when api_type is cassandra.

  • cosmosdb_gremlin_database_name - (Optional) Specifies the name of the Gremlin Database which the Spring Cloud App should be associated with. Should only be set when api_type is gremlin.

  • cosmosdb_gremlin_graph_name - (Optional) Specifies the name of the Gremlin Graph which the Spring Cloud App should be associated with. Should only be set when api_type is gremlin.

  • cosmosdb_mongo_database_name - (Optional) Specifies the name of the Mongo Database which the Spring Cloud App should be associated with. Should only be set when api_type is mongo.

  • cosmosdb_sql_database_name - (Optional) Specifies the name of the Sql Database which the Spring Cloud App should be associated with. Should only be set when api_type is sql.

The following attributes are exported:

  • id - The ID of the Spring Cloud Application CosmosDB Association.

Explanation in Terraform Registry

Associates a Spring Cloud Application with a CosmosDB Account.

Microsoft.AppPlatform/Spring/apps/bindings (Azure Resource Manager)

The Spring/apps/bindings in Microsoft.AppPlatform can be configured in Azure Resource Manager with the resource name Microsoft.AppPlatform/Spring/apps/bindings. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

An example could not be found in GitHub.

Parameters

  • apiVersion required - string
  • name required - string

    The name of the Binding resource.

  • properties required
      • bindingParameters optional - object

        Binding parameters of the Binding resource

      • key optional - string

        The key of the bound resource

      • resourceId optional - string

        The Azure resource id of the bound resource

  • type required - string

Frequently asked questions

What is Azure Spring Cloud App Cosmosdb Association?

Azure Spring Cloud App Cosmosdb Association is a resource for Spring Cloud of Microsoft Azure. Settings can be wrote in Terraform.