Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
---
title: Three Ways to Consume Cloud Resources
---

xxx

Here are three ways to consume cloud resources:

## Directly use the secret generated by a cloud resource

[Provision and Binding Cloud Resources](./provision-and-consume-cloud-services)

## Use conjunction of values from the secret

[Generate a JDBC connection string]()

## Use data outputs and data inputs

```yaml
apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: a-static-website
spec:
components:
- name: create-bucket
type: alibaba-oss-website
properties:
bucket: oss-website-20220302-2135
acl: public-read
index_document: index.html
error_document: error/index.html
writeConnectionSecretToRef:
name: oss-website-conn
outputs:
- name: bucket
valueFrom: output.status.apply.outputs.BUCKET_NAME.value
- name: endpoint
valueFrom: output.status.apply.outputs.EXTERNAL_ENDPOINT.value
- name: index_document
valueFrom: properties.index_document
# valueFrom: output.spec.variable.index_document

- name: deploy-website
type: deploy-website
inputs:
- from: bucket
parameterKey: properties.bucket
- from: endpoint
parameterKey: properties.endpoint
- from: index_document
parameterKey: properties.index_document
properties:
static_web_url: "https://github.com/cloudacademy/static-website-example.git"




```
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: 消费云资源的三种方式
---

The Chinese version is currently not available.
1 change: 1 addition & 0 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ module.exports = {
"end-user/components/cloud-services/provision-and-consume-cloud-services",
"end-user/components/cloud-services/provision-and-initiate-database",
"end-user/components/cloud-services/secure-your-database-connection",
"end-user/components/cloud-services/three-ways-to-consume-cloud-resources",
],
},
"end-user/traits/rollout",
Expand Down