Make S3 always do a Put

Signed-off-by: Elie <elie.charra@cloudskiff.com>
This commit is contained in:
Elie 2021-04-29 10:59:44 +02:00
parent 72e3ec0542
commit 7abacf1b99
No known key found for this signature in database
GPG Key ID: 399AF69092C727B6
2 changed files with 7 additions and 0 deletions

View File

@ -28,6 +28,7 @@ page: """
deploy: s3.#Put & {
config: awsConfig
sourceInline: page
always: true
contentType: "text/html"
target: "s3://\(bucket)/index.html"
}

View File

@ -26,8 +26,14 @@ import (
// URL of the uploaded S3 object
url: out
// Always write the object to S3
always?: bool
out: string
aws.#Script & {
if always != _|_ {
"always": always
}
files: {
if sourceInline != _|_ {
"/inputs/source": sourceInline