Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update Kafka & Timer 'Version' #130

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
Expand Up @@ -2,7 +2,7 @@ Type: Application
Name: kafka-producer-fc-event-golang
Provider:
- 阿里云
Version: dev
Version: 0.0.1
Description: 快速部署一个可以生产消息至 Kafka 的函数到阿里云函数计算
HomePage: https://github.com/devsapp/start-fc
Tags:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Type: Application
Name: kafka-trigger-fc-event-golang
Provider:
- 阿里云
Version: dev
Version: 0.0.1
Description: 快速部署一个具备 Kafka触发器 Event 类型的函数到阿里云函数计算
HomePage: https://github.com/devsapp/start-fc
Tags:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Type: Application
Name: timer-trigger-fc-event-golang
Provider:
- 阿里云
Version: dev
Version: 0.0.1
Description: 快速部署一个具备 定时器触发器 Event 类型的函数到阿里云函数计算
HomePage: https://github.com/devsapp/start-fc
Tags:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Type: Application
Name: kafka-producer-fc-event-java11
Provider:
- 阿里云
Version: dev
Version: 0.0.1
Description: 快速部署一个可以生产消息至 Kafka 的函数到阿里云函数计算
HomePage: https://github.com/devsapp/start-fc
Tags:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Type: Application
Name: kafka-trigger-fc-event-java11
Provider:
- 阿里云
Version: dev
Version: 0.0.1
Description: 快速部署一个具备 Kafka触发器 Event 类型的函数到阿里云函数计算
HomePage: https://github.com/devsapp/start-fc
Tags:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Type: Application
Name: timer-trigger-fc-event-java11
Provider:
- 阿里云
Version: dev
Version: 0.0.1
Description: 快速部署一个具备 定时器触发器 Event 类型的函数到阿里云函数计算
HomePage: https://github.com/devsapp/start-fc
Tags:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Type: Application
Name: kafka-producer-fc-event-nodejs14
Provider:
- 阿里云
Version: dev
Version: 0.0.1
Description: 快速部署一个可以生产消息至 Kafka 的函数到阿里云函数计算
HomePage: https://github.com/devsapp/start-fc
Tags:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Type: Application
Name: kafka-trigger-fc-event-nodejs14
Provider:
- 阿里云
Version: dev
Version: 0.0.1
Description: 快速部署一个具备 Kafka触发器 Event 类型的函数到阿里云函数计算
HomePage: https://github.com/devsapp/start-fc
Tags:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Type: Application
Name: timer-trigger-fc-event-nodejs14
Provider:
- 阿里云
Version: dev
Version: 0.0.1
Description: 快速部署一个具备 定时器触发器 Event 类型的函数到阿里云函数计算
HomePage: https://github.com/devsapp/start-fc
Tags:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# kafka-producer-fc-event-python3 help documentation
# kafka-producer-fc-event-python3.9 help documentation

<p align="center" class="flex justify-center">
<a href="https://www.serverless-devs.com" class="ml-1">
Expand Down Expand Up @@ -85,9 +85,9 @@ Using this item, verify that your operational account has the following product
- Deploy via [Serverless Devs Cli](https://www.serverless-devs.com/serverless-devs/install):

- [Install Serverless Devs Cli Developer Tools](https://www.serverless-devs.com/serverless-devs/install), and perform [Authorization Information Configuration](https://www.serverless-devs.com/ fc/config);
- Initialize the project: `s init kafka-producer-fc-event-python3 -d kafka-producer-fc-event-python3`
- Initialize the project: `s init kafka-producer-fc-event-python39 -d kafka-producer-fc-event-python39`
- Fill in the parameters described in the above modules
- Go to the project directory, `cd kafka-producer-fc-event-python3`
- Go to the project directory, `cd kafka-producer-fc-event-python39`
- Do project deployment: `s deploy -y`
- local debugging
- Enter the application project project and execute the following command: `s invoke -e '{"Key": "test python3 kafka producer"}'`.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# kafka-producer-fc-event-python3 帮助文档
# kafka-producer-fc-event-python3.9 帮助文档

<p align="center" class="flex justify-center">
<a href="https://www.serverless-devs.com" class="ml-1">
Expand Down Expand Up @@ -84,9 +84,9 @@
- 通过 [Serverless Devs Cli](https://www.serverless-devs.com/serverless-devs/install) 进行部署:

- [安装 Serverless Devs Cli 开发者工具](https://www.serverless-devs.com/serverless-devs/install) ,并进行[授权信息配置](https://www.serverless-devs.com/fc/config) ;
- 初始化项目:`s init kafka-producer-fc-event-python3 -d kafka-producer-fc-event-python3`
- 初始化项目:`s init kafka-producer-fc-event-python39 -d kafka-producer-fc-event-python39`
- 填入在以上模块介绍的参数
- 进入项目目录,`cd kafka-producer-fc-event-python3`
- 进入项目目录,`cd kafka-producer-fc-event-python39`
- 进行项目部署: `s deploy -y`
- 本地调试
- 进入应用项目工程下,执行下面命令:`s invoke -e '{"Key": "test python3 kafka producer"}'`。
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Type: Application
Name: kafka-producer-fc-event-python3
Name: kafka-producer-fc-event-python39
Provider:
- 阿里云
Version: dev
Version: 0.0.1
Description: 快速部署一个可以生产消息至 Kafka 的函数到阿里云函数计算
HomePage: https://github.com/devsapp/start-fc
Tags:
Expand All @@ -11,7 +11,7 @@ Tags:
Category: 新手入门
Service:
函数计算:
Runtime: Python3
Runtime: Python3.9
Authorities:
- AliyunFCFullAccess
- AliyunKafkaFullAccess
Expand Down Expand Up @@ -62,7 +62,7 @@ Parameters:
functionName:
title: 函数名
type: string
default: kafka-producer-event-function-python3
default: kafka-producer-event-function-python39
description: 数据预处理函数名称,只能包含字母、数字、下划线和中划线。不能以数字、中划线开头。长度在 1-128 之间
vpcId:
title: kafka 实例所在 vpc id
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Python3 Kafka message queue producer example
# Python3.9 Kafka message queue producer example

This example shows you the Python [Message Queue Kafka](https://help.aliyun.com/document_detail/68151.html?spm=5176.167616.J_5253785160.5.2dfe6feexRPqMj) producer example. (See Kafka Trigger Example for Consumer Example)

Expand Down Expand Up @@ -53,7 +53,7 @@ When creating a service, select AliyunFcDefaultRole in `Service Role` in `Advanc
- Select `Create from scratch with standard Runtime`
- Fill in the function name
- Select the code upload method `Upload code via zip package` to upload the corresponding code zip package
- Select the operating environment Python3.6
- Select the operating environment Python3.9
- Select function trigger method: trigger by event request
- Use default for other settings

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Python3 Kafka消息队列生产者示例
# Python3.9 Kafka消息队列生产者示例

本示例为您展示了 Python 的 [消息队列Kafka](https://help.aliyun.com/document_detail/68151.html?spm=5176.167616.J_5253785160.5.2dfe6feexRPqMj) 生产者示例。(消费者示例见Kafka触发器示例)

Expand Down Expand Up @@ -53,7 +53,7 @@ zip code.zip -r ./*
- 选择 `使用标准 Runtime 从零创建`
- 填入函数名称
- 代码上传方式选择`通过zip包上传代码`上传相应代码压缩包
- 选择运行环境Python3.6
- 选择运行环境Python3.9
- 选择函数触发方式:通过事件请求触发
- 其他设置使用默认

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ services:
function:
name: "{{functionName}}"
description: 'kafka producer by serverless devs'
runtime: python3
runtime: python3.9
codeUri: ./code
handler: index.handler
memorySize: 128
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Type: Application
Name: kafka-trigger-fc-event-python3
Provider:
- 阿里云
Version: dev
Version: 0.0.1
Description: 快速部署一个具备 Kafka触发器 Event 类型的函数到阿里云函数计算
HomePage: https://github.com/devsapp/start-fc
Tags:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Type: Application
Name: timer-trigger-fc-event-python3
Provider:
- 阿里云
Version: dev
Version: 0.0.1
Description: 快速部署一个具备 定时器触发器 Event 类型的函数到阿里云函数计算
HomePage: https://github.com/devsapp/start-fc
Tags:
Expand Down