$ docker build -f examples/docker_aws_lambda_example/Dockerfile -t goclients .
Create Amazon Elastic Container Registry first
Push the docker image to AWS ECR according to the AWS ECR user guide, or using all the commands under the View push commands
of the ECR repository.
Choose the Container Image
when create the lambda function, add the docker image URL from Container image URL
.
Add the environment variables under the Configuration
, we can pass the parameters like BOOTSTRAP_SERVERS
, CCLOUDAPIKEY
, CCLOUDAPISECRET
, TOPIC
as environment variables.
Click the Test
button under Test
.