mirror of
https://github.com/dokku/dokku.git
synced 2026-02-23 19:50:34 +01:00
feat: initial templates for scheduling (not building, but i need them somewhere)
This commit is contained in:
13
plugins/builder-lambda/templates/samconfig.toml.sigil
Normal file
13
plugins/builder-lambda/templates/samconfig.toml.sigil
Normal file
@@ -0,0 +1,13 @@
|
||||
version = 0.1
|
||||
|
||||
[default]
|
||||
[default.deploy]
|
||||
[default.deploy.parameters]
|
||||
stack_name = "{{ $.APP }}-lambda"
|
||||
s3_bucket = "{{ $.S3_BUCKET }}"
|
||||
s3_prefix = "{{ $.APP }}"
|
||||
region = "{{ $.AWS_REGION }}"
|
||||
confirm_changeset = true
|
||||
fail_on_empty_changeset = false
|
||||
capabilities = "CAPABILITY_IAM"
|
||||
image_repositories = []
|
||||
25
plugins/builder-lambda/templates/template.yaml.sigil
Normal file
25
plugins/builder-lambda/templates/template.yaml.sigil
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
AWSTemplateFormatVersion: "2010-09-09"
|
||||
Transform: AWS::Serverless-2016-10-31
|
||||
Description: >
|
||||
{{ $.APP }}
|
||||
|
||||
# todo: iterate over every process type and create a resource entry
|
||||
Resources:
|
||||
{{ $.APP}}{{ $.PROCESS_TYPE | capitalize}}:
|
||||
Type: AWS::Serverless::Function
|
||||
Properties:
|
||||
Architectures:
|
||||
- x86_64
|
||||
CodeUri: s3://{{ $.S3_BUCKET }}/{{ $.APP }}/{{ $.GIT_REV }}
|
||||
FunctionName: {{ $.APP | lower }}{{ $.PROCESS_TYPE | lower }}
|
||||
Handler: {{ $.HANDLER }}
|
||||
Runtime: {{ $.RUNTIME }}
|
||||
Role: {{ $.IAM_ROLE }}
|
||||
Timeout: 3
|
||||
Environment:
|
||||
Variables:
|
||||
{{ range $key, $value := . }}
|
||||
{{ $key }}: |
|
||||
{{ $value }}
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user