Using Bzlmod with Bazel 6 or greater
- (Bazel 6 only) Enable with
common --enable_bzlmodin.bazelrc. - Add to your
MODULE.bazelfile:
bazel_dep(name = "aspect_rules_aws", version = "ain")Using WORKSPACE
Paste this snippet into your file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_aws",
sha256 = "46509a6f60e2d8cd1154abce993bdeb7df489b7cf7f59e9197d7eb49c4fcd40f",
strip_prefix = "rules_aws-ain",
url = "https://github.com/aspect-build/rules_aws/releases/download/main/rules_aws-main.tar.gz",
)
######################
# rules_aws setup #
######################
# Fetches the rules_aws dependencies.
# If you want to have a different version of some dependency,
# you should fetch it *before* calling this.
# Alternatively, you can skip calling this function, so long as you've
# already fetched all the dependencies.
load("@aspect_rules_aws//aws:repositories.bzl", "aws_register_toolchains", "rules_aws_dependencies")
rules_aws_dependencies()
aws_register_toolchains(
name = "aws",
aws_cli_version = "2.13.0",
)