examples/jamstack: implemented database integration with RDS

Signed-off-by: Sam Alba <sam.alba@gmail.com>
This commit is contained in:
Sam Alba
2021-04-12 16:19:15 -07:00
parent 0b3395b9e8
commit e972863be6
5 changed files with 91 additions and 22 deletions

View File

@@ -2,30 +2,9 @@ package main
import (
"dagger.io/dagger"
"dagger.io/aws"
"dagger.io/aws/ecs"
)
infra: {
// AWS auth & default region
awsConfig: aws.#Config
// VPC Id
vpcId: string
// ECR Image repository
ecrRepository: string
// ECS cluster name
ecsClusterName: string
// Execution Role ARN used for all tasks running on the cluster
ecsTaskRoleArn?: string
// ELB listener ARN
elbListenerArn: string
}
// Backend configuration
backend: {
// Source code to build this container