Skip to content

Commit 3292c46

Browse files
authored
Merge pull request #221 from rust-lang/docs-assets-backup-link-terraform-code
docs(assets-backup): link terraform code
2 parents 14370aa + a0a38ed commit 3292c46

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

service-catalog/rust-assets-backup/implementation.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
# Implementation details
22

3-
The account where we store the backup is called `rust-backup`. It contains two GCP projects: `backup-prod` and `backup-staging`.
4-
Here we have one Google [Object Storage](https://cloud.google.com/storage?hl=en) in the `europe-west1` (Belgium) region for the following AWS S3 buckets:
3+
The terraform implementation is defined in the
4+
[assets-backup](https://github.com/rust-lang/simpleinfra/blob/9eceec828f6f60c1609700e95783fcba7bc187ba/terraform/shared/modules/assets-backup/main.tf)
5+
module. Two environments use it:
6+
7+
- [assets-backup-prod](https://github.com/rust-lang/simpleinfra/blob/9eceec828f6f60c1609700e95783fcba7bc187ba/terraform/assets-backup-prod/backup.tf)
8+
- [assets-backup-staging](https://github.com/rust-lang/simpleinfra/blob/9eceec828f6f60c1609700e95783fcba7bc187ba/terraform/assets-backup-staging/backup.tf)
9+
10+
The [variables](https://github.com/rust-lang/simpleinfra/blob/5c4eaf5cd727277e56e356e2f4fbb215e2607f90/terraform/shared/modules/assets-backup/variables.tf)
11+
file explains the available variables for the module.
12+
13+
For production, we have one Google [Object Storage](https://cloud.google.com/storage?hl=en) in the `europe-west1` (Belgium) region for the following AWS S3 buckets:
514

615
- `crates-io`. CloudFront URL: `cloudfront-static.crates.io`. It contains the crates published by the Rust community.
716
- `static-rust-lang-org`. CloudFront Url: `cloudfront-static.rust-lang.org`. Among other things, it contains the Rust releases.
@@ -15,3 +24,5 @@ For the objects:
1524

1625
We use [Storage Transfer](https://cloud.google.com/storage-transfer/docs/overview) to automatically transfer the content of the s3 bucket into the Google Object Storage.
1726
This is a service managed by Google. We'll use it to download the S3 buckets from CloudFront to perform a daily incremental transfer. The transfers only move files that are new, updated, or deleted since the last transfer, minimizing the amount of data that needs to be transferred.
27+
28+
The original issue that tracked this work is [infra-team#122](https://github.com/rust-lang/infra-team/issues/122)

0 commit comments

Comments
 (0)