-
Notifications
You must be signed in to change notification settings - Fork 8
TEMP: sketch on api.tf on what common variables to vendorize and where to pass #222
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
base: master
Are you sure you want to change the base?
Conversation
…e to pass Potentially we need to - define instance varaibles in variables.tf, not hardcode in api.tf and staging_pipeline.tf - we already pass different terraform variables for DOI service auth
| DJANGO_DANDI_DOI_API_URL = "https://api.datacite.org/dois" | ||
| DJANGO_DANDI_DOI_API_USER = "dartlib.dandi" | ||
| DJANGO_DANDI_DOI_API_PREFIX = "10.48324" | ||
| DJANGO_DANDI_DOI_API_PREFIX = "10.${var.dandi_instance_datacite_id}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick: It is reasonable to hardcode the 10. since IIUC thats a universal for dois. However, IMO i think it will be friendlier to configure if the var would be set to 10.12345 because the full value is what is defined as "your prefix" from datacite. https://doi.test.datacite.org/repositories/dartlib.dandi/prefixes
| # TODO: move to variables.tf? | ||
| dandi_instance_name = "dandi" | ||
| dandi_instance_tld = "dandiarhive.org" | ||
| dandi_instance_datacite_id = "48324" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
those likely should be moved out into terraform/variables.tf
|
@yarikoptic If there is no action plan or effort being put towards this PR please close it. |
Potentially we need to