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