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

Set SNS topic env var in build-and-run-model workflow container #64

Conversation

jeancochrane
Copy link
Contributor

@jeancochrane jeancochrane commented Nov 30, 2023

This PR updates the res model to make use of ccao-data/actions#6 in order to set an env var for the SNS topic in the Batch job container. This variable is used to determine whether and how the pipeline will publish its status to an SNS topic:

if (!is.na(Sys.getenv("AWS_SNS_ARN_MODEL_STATUS", unset = NA))) {

See here for an example of a successful workflow run, and check your email to view the SNS notification.

Closes #63.

@jeancochrane jeancochrane force-pushed the jeancochrane/63-model-sns-topic-notifications-are-not-being-sent branch from 1c1a258 to 5376aa5 Compare November 30, 2023 23:22
@jeancochrane jeancochrane marked this pull request as ready for review December 1, 2023 18:57
@jeancochrane jeancochrane merged commit 6da78cb into master Dec 1, 2023
3 of 4 checks passed
@jeancochrane jeancochrane deleted the jeancochrane/63-model-sns-topic-notifications-are-not-being-sent branch December 1, 2023 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Model SNS topic notifications are not being sent
2 participants