Skip to content

Commit

Permalink
chore: yaml example
Browse files Browse the repository at this point in the history
  • Loading branch information
rawkode committed May 15, 2023
1 parent 8761086 commit 786ecc9
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 7 deletions.
57 changes: 56 additions & 1 deletion docs/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The [Redis Cloud](https://redis.com) Resource Provider lets you manage Redis Clo

## Example

{{< chooser language "typescript,python,go" >}}
{{< chooser language "typescript,python,go,yaml" >}}
{{% choosable language typescript %}}

```typescript
Expand Down Expand Up @@ -182,4 +182,59 @@ func main() {

{{% /choosable %}}

{{% choosable language yaml %}}

```yaml
name: rediscloud-yaml
runtime: yaml
description: A minimal Pulumi YAML program
variables:
cardId:
fn::invoke:
function: rediscloud:getPaymentMethod
arguments:
cardType: Visa
lastFourNumbers: "1234"
return: id
outputs: {}
resources:
subscription:
type: rediscloud:Subscription
properties:
paymentMethod: credit-card
paymentMethodId: ${cardId}
cloudProvider:
regions:
- region: us-east-1
multipleAvailabilityZones: true
networkingDeploymentCidr: "10.0.0.0/24"
preferredAvailabilityZones:
- "use1-az1"
- "use1-az2"
- "use1-az5"
creationPlan:
memoryLimitInGb: 10
quantity: 1
replication: true
supportOssClusterApi: false
throughputMeasurementBy: operations-per-second
throughputMeasurementValue: 20000
modules:
- RedisJSON
database:
type: rediscloud:SubscriptionDatabase
properties:
subscriptionId: ${subscription.id}
protocol: redis
memoryLimitInGb: 10
dataPersistence: aof-every-1-second
throughputMeasurementBy: "operations-per-second"
throughputMeasurementValue: 20000
replication: true
modules:
- name: RedisJSON
```
{{% /choosable %}}
{{< /chooser >}}
2 changes: 1 addition & 1 deletion examples/go/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require (
github.com/Microsoft/go-winio v0.4.16 // indirect
github.com/ProtonMail/go-crypto v0.0.0-20210428141323-04723f9f07d7 // indirect
github.com/RedisLabs/pulumi-rediscloud v1.1.2-0.20230514161242-16a6b64d506f // indirect
github.com/RedisLabs/pulumi-rediscloud/sdk v1.1.2 // indirect
github.com/RedisLabs/pulumi-rediscloud/sdk v1.2.0 // indirect
github.com/acomagu/bufpipe v1.0.3 // indirect
github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da // indirect
github.com/blang/semver v3.5.1+incompatible // indirect
Expand Down
2 changes: 2 additions & 0 deletions examples/go/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ github.com/RedisLabs/pulumi-rediscloud v1.1.2-0.20230514161242-16a6b64d506f h1:+
github.com/RedisLabs/pulumi-rediscloud v1.1.2-0.20230514161242-16a6b64d506f/go.mod h1:v+aAE2hkeN5wysMfz/e7PliNK8EIsmSjlfCljzQM4YQ=
github.com/RedisLabs/pulumi-rediscloud/sdk v1.1.2 h1:CJ3ivz2CzdNs4n9E50yAw+e+SZYRLojtc7PxnoMYtPg=
github.com/RedisLabs/pulumi-rediscloud/sdk v1.1.2/go.mod h1:dZFJcI1jJwCEqqcdJTP+1U+HoSlbWvTZHOkG3WMS8sQ=
github.com/RedisLabs/pulumi-rediscloud/sdk v1.2.0 h1:hPz2XgGWnDc1RxbZRcnzB478WDmymmnDBAYpU0pHETQ=
github.com/RedisLabs/pulumi-rediscloud/sdk v1.2.0/go.mod h1:dZFJcI1jJwCEqqcdJTP+1U+HoSlbWvTZHOkG3WMS8sQ=
github.com/acomagu/bufpipe v1.0.3 h1:fxAGrHZTgQ9w5QqVItgzwj235/uYZYgbXitB+dLupOk=
github.com/acomagu/bufpipe v1.0.3/go.mod h1:mxdxdup/WdsKVreO5GpW4+M/1CE2sMG4jeGJ2sYmHc4=
github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da h1:KjTM2ks9d14ZYCvmHS9iAKVt9AyzRSqNU1qabPih5BY=
Expand Down
8 changes: 4 additions & 4 deletions examples/nodejs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"main": "index.js",
"dependencies": {
"@pulumi/pulumi": "^3.0.0",
"@rediscloud/pulumi-rediscloud": "1.1.2"
"@rediscloud/pulumi-rediscloud": "1.2.5"
}
}

0 comments on commit 786ecc9

Please sign in to comment.