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.
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 arecassandra
,gremlin
,mongo
,sql
ortable
. 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 whenapi_type
iscassandra
.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 whenapi_type
isgremlin
.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 whenapi_type
isgremlin
.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 whenapi_type
ismongo
.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 whenapi_type
issql
.
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 - stringname
required - stringThe name of the Binding resource.
properties
requiredbindingParameters
optional - objectBinding parameters of the Binding resource
key
optional - stringThe key of the bound resource
resourceId
optional - stringThe Azure resource id of the bound resource
type
required - string