Skip to content

main

Latest

Choose a tag to compare

@github-actions github-actions released this 23 Aug 15:06
· 12 commits to main since this release
3e45d99

Using Bzlmod with Bazel 6 or greater

  1. (Bazel 6 only) Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
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",
)