Skip to content

Commit

Permalink
Add Alibaba Cloud OSS website resources (#275)
Browse files Browse the repository at this point in the history
* Add Alibaba Cloud OSS website resources

- create a website OSS bucket
- deploy a static website in the bucket

Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com>

* rename definition name

Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com>
  • Loading branch information
zzxwill committed Mar 14, 2022
1 parent 088e79c commit 3da5159
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: core.oam.dev/v1beta1
kind: ComponentDefinition
metadata:
annotations:
definition.oam.dev/description: Alibaba Cloud OSS static webstie bucket
creationTimestamp: null
labels:
type: terraform
name: alibaba-oss-website
namespace: vela-system
spec:
schematic:
terraform:
configuration: https://github.com/kubevela-contrib/terraform-modules.git
path: alibaba/oss/website-bucket
type: remote
workload:
definition:
apiVersion: terraform.core.oam.dev/v1beta1
kind: Configuration
status: {}
22 changes: 22 additions & 0 deletions addons/terraform-alibaba/definitions/terraform-deploy-website.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: core.oam.dev/v1beta1
kind: ComponentDefinition
metadata:
annotations:
definition.oam.dev/description: Deploy a Static Website in object stroage, like
S3 and OSS
creationTimestamp: null
labels:
type: terraform
name: deploy-website
namespace: vela-system
spec:
schematic:
terraform:
configuration: https://github.com/kubevela-contrib/terraform-modules.git
path: alibaba/oss/deploy-website
type: remote
workload:
definition:
apiVersion: terraform.core.oam.dev/v1beta1
kind: Configuration
status: {}

0 comments on commit 3da5159

Please sign in to comment.