【文件属性】:
文件名称:terraform-lambda-example:AWS Lambda的Hello World示例
文件大小:4KB
文件格式:ZIP
更新时间:2021-02-04 06:32:06
golang aws-lambda terraform aws-apigateway TerraformHCL
Terraform + Golang AWS Lambda + API网关
这是部署由AWS Lambda函数支持的HTTP API的最小Hello World示例。 该功能用Go编写,并且使用Terraform自动化部署。
先决条件
Terraform and Go
安装和 。 在具有Homebrew的macOS上:
$ brew install go terraform
AWS凭证
使用aws configure命令配置您的AWS访问密钥和~/.aws/credentials密钥,或者仅创建一个包含密钥的~/.aws/credentials文件:
[default]
aws_acce
【文件预览】:
terraform-lambda-example-master
----.gitignore(54B)
----main.go(716B)
----README.md(3KB)
----main.tf(3KB)
----Makefile(368B)