Skip to content

Conversation

@yarikoptic
Copy link
Member

@yarikoptic yarikoptic commented May 21, 2025

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
  • note: for changes to be applied after merge, someone needs to login to TF and click "Plan" and then "Apply" (likely @satra if @waxlamp would not yet be around)

…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}"
Copy link
Member

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"
Copy link
Member Author

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 yarikoptic moved this from In Progress to Todo in Multi-DANDI instance support Aug 22, 2025
@jjnesbitt
Copy link
Member

@yarikoptic If there is no action plan or effort being put towards this PR please close it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

4 participants