1个不稳定版本
0.1.0 | 2024年4月15日 |
---|
#6 在 #trustfall
44KB
1K SLoC
Terraform Trustfall Adapter
一个Terraform Trustfall适配器。
注意:此适配器不由Trustfall维护者维护。
规范
type RootSchemaQuery {
Modules: [Module!]!
ApiConfig: ApiConfig
Lambda: [Lambda!]
Module(name: String!, tag: String): [Module],
Terraform: [Terraform!]!
}
type Module {
source: String!
version: String!
variables: [Variable!]
}
type Variable {
name: String!
"""
It will be the string implementation of the value.
"""
value: String!
}
type Terraform {
required_version: String
backend: Backend
required_providers: [RequiredProvider!]
}
type Backend {
name: String!
}
type RequiredProvider {
name: String!
source: String!
version: String!
}
type ApiConfig {
source: String!
version: String!
template_file: String!
template_variables: [TemplateVariable!]!
}
type TemplateVariable {
name: String!
value: String!
lambda: Lambda
}
type Lambda {
name: String!
description: String!
handler: String!
permissions: [Permissions!]!
}
type Permissions {
statement_id: String!
principal: String!
source_arn: String!
http_method: String
http_path: String
}
待办事项
- 改进文档
- 添加更多测试
- 添加示例
- 预期结构的说明
依赖关系
~14MB
~324K SLoC