Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
njuCZ committed Dec 18, 2019
1 parent 8559bfb commit 9282f55
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 1 deletion.
12 changes: 12 additions & 0 deletions website/docs/d/spring_cloud.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,18 @@ description: |-

Use this data source to access information about an existing Spring Cloud Service.

## Example Usage

```hcl
data "azurerm_spring_cloud" "example" {
name = azurerm_spring_cloud.example.name
resource_group_name = azurerm_resource_group.example.name
}
output "spring_cloud_id" {
value = "${data.azurerm_spring_cloud.example.id}"
}
```

## Argument Reference

Expand Down
9 changes: 9 additions & 0 deletions website/docs/d/spring_cloud_config_server.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ description: |-

Use this data source to access information about an existing Spring Cloud Config Server.

```hcl
data "azurerm_spring_cloud_config_server" "example" {
spring_cloud_id = azurerm_spring_cloud.example.id
}
output "spring_cloud_config_server_label" {
value = "${data.azurerm_spring_cloud_config_server.example.label}"
}
```

## Argument Reference

Expand Down
29 changes: 28 additions & 1 deletion website/docs/r/spring_cloud.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,25 @@ description: |-
Manage Azure Spring Cloud Service instance. Azure Spring Cloud provides a managed service that enables Java developers to easily build and run Spring-boot based microservices on Azure with no code changes.
Within an azure spring cloud service, users can manage config server, manage multiple spring cloud apps and manage deployments

## Example Usage

```hcl
resource "azurerm_resource_group" "example" {
name = "resGroup"
location = "Southeast Asia"
}
resource "azurerm_spring_cloud" "example" {
name = "sc-example"
resource_group_name = azurerm_resource_group.example.name
location = azurerm_resource_group.example.location
tags = {
environment = "staging"
}
}
```

## Argument Reference

The following arguments are supported:
Expand All @@ -19,7 +38,7 @@ The following arguments are supported:

* `resource_group_name` - (Required) The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Changing this forces a new resource to be created.

* `location` - (Optional) The GEO location of the resource. Changing this forces a new resource to be created.
* `location` - (Optional) The GEO location of the resource. Changing this forces a new resource to be created. Until November 20, 2019 4:20 PM, only `East US`, `Southeast Asia`, `West Europe`, `West US 2` following locations are supported.

* `tags` - (Optional) Tags of the service which is a list of key value pairs that describe the resource. Changing this forces a new resource to be created.

Expand All @@ -34,3 +53,11 @@ The following attributes are exported:
* `id` - Fully qualified resource Id for the resource.

* `name` - The name of the resource.

## Import

Spring Cloud services can be imported using the `resource id`, e.g.

```shell
terraform import azurerm_spring_cloud.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/terraform-signalr/providers/Microsoft.AppPlatform/Spring/myspringservice
```
24 changes: 24 additions & 0 deletions website/docs/r/spring_cloud_config_server.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,30 @@ Azure Spring Cloud Config Server supports Public repository, Private repository

Azure Spring Cloud Config Server also supports multiple repositories with Pattern Matching

## Example Usage

```hcl
resource "azurerm_resource_group" "example" {
name = "resGroup"
location = "Southeast Asia"
}
resource "azurerm_spring_cloud" "example" {
name = "sc-example"
resource_group_name = azurerm_resource_group.example.name
location = azurerm_resource_group.example.location
tags = {
environment = "staging"
}
}
resource "azurerm_spring_cloud_config_server" "test" {
label = "config"
spring_cloud_id = "azurerm_spring_cloud.example.id
uri = "https://github.com/Azure-Samples/piggymetrics"
}
```

## Argument Reference

Expand Down

0 comments on commit 9282f55

Please sign in to comment.