A set of bazel rules that provide macros and rules for interacting with Amazon web services.
These rules require bazel_rules_nodejs
Add a WORKSPACE dependency on this repository
git_repository( name = "tools_evertz_rules_aws", remote = "https://github.com/evertz/ev_rules_aws.git", commit = "REPLACE_WITH_COMMIT", ) load("@tools_evertz_rules_aws//:defs.bzl", "setup_rules_aws") setup_rules_aws()
Pushes a set of files to an S3 bucket, use with
|bucket_name||Name of the S3 bucket to push to|
|files||A list of files or labels that should be pushed|
|strip_prefix||Files are pushed with their full path intact.
This can be customized by setting
|base_prefix||The prefix to be added to each of the files to give it in a place in the bucket, defaults to
This field can substitute values from env vars defined in
Use the syntax
|empty_prefix_files||If set to
|configuration_env_vars||A list of env variables that will be made available to this rule. Can also take input from
load("@tools_evertz_rules_aws//:defs.bzl", "ev_s3_push") ev_s3_push( name = "docs", files = [":some_label", "README.md"], bucket_name = "docs_site", strip_prefix = "workspace_name/rules_aws", base_prefix = "bazel", )