Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for AWS Account ID in s3 fast sync bucket #58

Merged
merged 3 commits into from
Dec 8, 2023

Conversation

Christopher-Li
Copy link
Contributor

@Christopher-Li Christopher-Li commented Dec 8, 2023

Mainnet indexer prepends account_id in front of the s3 bucket, so we need to support full node snapshots with and without account_id

@@ -6,6 +6,7 @@ locals {
tick_frequency = 300 # 5 minutes
retry_interval = 3000 # 3 seconds in milliseconds
retry_count = 3 # 3 retries
bucket_prefix = var.aws_account_id == "" ? var.environment : "${var.aws_account_id}-${var.environment}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use a more descriptive name, snapshot_bucket_prefix?

@Christopher-Li Christopher-Li merged commit 332d90d into main Dec 8, 2023
4 checks passed
pswies pushed a commit to dydxopsdao/v4-infrastructure that referenced this pull request Feb 8, 2024
* Add support for AWS Account ID in s3 fast sync bucket

* lint

* nits
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants