sparse-intern-71089
05/23/2022, 5:21 PMorange-policeman-59119
05/23/2022, 5:41 PMimport { local } from "@pulumi/command";
const bucket = // your bucket declaration
const webUpload = new local.Command("web", {
create: pulumi.interpolate`
wget <https://example.com/mywebstuff.zip> | unzip -d /tmp/web
aws s3 sync /tmp/web s3://${bucket.bucket}/web
`,
// you may want to examine what "s3 sync" args you want, such as:
// --delete (delete files that don't exist in the remote dir)
// --acl public-read if you want files to be internet accessible
// etc.
triggers: [datetime.now()] // will run every time.
});
proud-nail-99860
05/23/2022, 5:51 PMNo matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by