Signed-off-by: Sam Alba <sam.alba@gmail.com>
This commit is contained in:
Sam Alba 2021-05-11 15:21:34 -07:00
parent 9cab6146ce
commit 8730c66167

View File

@ -3,7 +3,7 @@ package main
import ( import (
"dagger.io/aws" "dagger.io/aws"
"dagger.io/aws/s3" "dagger.io/aws/s3"
"dagger.io/dagger" "dagger.io/dagger"
) )
// AWS Config for credentials and default region // AWS Config for credentials and default region
@ -15,11 +15,11 @@ awsConfig: aws.#Config & {
bucket: *"dagger-io-examples" | string bucket: *"dagger-io-examples" | string
source: dagger.#Artifact source: dagger.#Artifact
url: "\(deploy.url)index.html" url: "\(deploy.url)index.html"
deploy: s3.#Put & { deploy: s3.#Put & {
config: awsConfig config: awsConfig
"source": source "source": source
contentType: "text/html" contentType: "text/html"
target: "s3://\(bucket)/" target: "s3://\(bucket)/"
} }