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

feat: allow sending alerts to another account #179

Merged
merged 2 commits into from
Jul 11, 2024

Conversation

luislhl
Copy link
Collaborator

@luislhl luislhl commented Jul 5, 2024

Motivation

We need to send alerts from wallet-service Lambdas running in separate AWS sub-accounts

Acceptance Criteria

  • We should have a new variable to define the account id where alert-manager is located. It's possible now that this account will be different than the one where wallet-service Lambdas/daemon run.

Deploy

  • We need to manually deploy this to our test networks (like nano-testnet) after merging

Checklist

  • If you are requesting a merge into master, confirm this code is production-ready and can be included in future releases as soon as it gets merged
  • Make sure either the unit tests and/or the QA tests are capable of testing the new features
  • Make sure you do not include new dependencies in the project unless strictly necessary and do not include dev-dependencies as production ones. More dependencies increase the possibility of one of them being hijacked and affecting us.

@luislhl luislhl self-assigned this Jul 5, 2024
@luislhl luislhl requested review from r4mmer and andreabadesso and removed request for r4mmer July 5, 2024 15:33
andreabadesso
andreabadesso previously approved these changes Jul 10, 2024
@luislhl luislhl requested a review from tuliomir July 10, 2024 22:05
tuliomir
tuliomir previously approved these changes Jul 10, 2024
ALERT_MANAGER_REGION,
ALERT_MANAGER_TOPIC,
} = process.env;

const QUEUE_URL = `https://sqs.${ALERT_MANAGER_REGION}.amazonaws.com/${ACCOUNT_ID}/${ALERT_MANAGER_TOPIC}`;
const account_id = ALERT_MANAGER_ACCOUNT_ID || ACCOUNT_ID;

Choose a reason for hiding this comment

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

suggestion(non-breaking): Add a comment or another more visible documentation informing that, if the ALERT_MANAGER_ACCOUNT_ID is not informed, the wallet service's own ACCOUNT_ID will be used as default to reach the Alert Manager.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added in 967ddb2.

@luislhl luislhl merged commit ec8755b into master Jul 11, 2024
1 check passed
@luislhl luislhl deleted the feat/allow-sending-alerts-to-another-account branch July 11, 2024 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Waiting to be deployed
Development

Successfully merging this pull request may close these issues.

None yet

3 participants