-
Notifications
You must be signed in to change notification settings - Fork 4
Deploy Airflow DAGs after OGC API deployment is complete #422
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
Conversation
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.
@nikki-t : I think it would be better to not add new variables in .tfvars, but instead read those values from these SSM parameters:
/sps/processing/workflows/unity_username
/sps/processing/workflows/unity_password
/sps/processing/workflows/unity_client_id
The last parameter key/value does not currently exists - I just created that for the unity-dev-venue. But we could ask @jl-0 to create it manually together with the other "/sps/processing/" parameters?
You could also create those values manually for now in unity-venue-test and unity-venue-prod |
I get these errors when trying to deploy: |
@LucaCinquini - I updated the SSM parameters to retrieve their value from the data sources but may be running into a race condition where the OGC API is not quite available when the Terraform deployment goes to deploy the Airflow DAGs. And therefore the DAGs do not get deployed an the following response is returned: @jpl-btlunsfo - Am I looking at the right resource to make sure the OGC API is fully deployed:
It looks like the |
Well if this ticket cannot be completed so be it... It's still ok to deploy the DAGs as a separate step. Let me know what you and Brad fond out about the dependencies. |
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.
After the fix for the script that waits for the OGC API, this works very well: I was able to redeploy the SPS and the DAGs were automatically published. Note that I had to remove all previous snapshots because there was somewhat a messy state between DAGs that had been published via OGC, and DAGs that were manually copied into the Airflow pods. Restarting from scratch solved that problem.
Purpose
Proposed Changes
null_resource
Terraform resource that executes the modifiedpost_deployment_terraform.sh
to deploy DAGs after the OGC API has been successfully deployed.Issues
Testing
nikki-3
deployment onunity-venue-dev
.Pending question
Do we want to trigger the DAG deployment everytime we run
terraform
?