-
Notifications
You must be signed in to change notification settings - Fork 1
[NDR-233] Move FhirDocumentReference #438
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: main
Are you sure you want to change the base?
Conversation
d3fc8a1 to
7b79283
Compare
| #!/bin/bash | ||
| set -euo pipefail | ||
|
|
||
| branch="${WORKSPACE:-$(git rev-parse --abbrev-ref HEAD)}" | ||
| branch=$(echo "$branch" | sed 's/[^a-zA-Z0-9]//g') | ||
| branch="${branch,,}" | ||
| apply="${APPLY:-false}" | ||
|
|
||
| # Forbidden branches | ||
| forbidden_branches=("main" "prod" "pre-prod" "ndr-test" "ndr-dev") | ||
|
|
||
| for fb in "${forbidden_branches[@]}"; do | ||
| if [[ "$branch" == "$fb" ]]; then | ||
| echo "❌ Error: Deployment from branch '$branch' is not allowed." | ||
| exit 1 | ||
| fi | ||
| done | ||
|
|
||
| cd infrastructure/ | ||
| terraform init -backend-config=backend.conf | ||
| terraform workspace select -or-create "$branch" | ||
| terraform plan -input=false -var-file=dev.tfvars -out tf.plan | ||
|
|
||
| if [[ "$apply" == "true" ]]; then | ||
| terraform apply -auto-approve -input=false tf.plan | ||
| fi |
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.
Is there any way to quickly check that your currently using the dev (or test) AWS environment?
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.
I think that should do it.
065a35e to
fb7abd8
Compare
fb7abd8 to
d6cd1cb
Compare
|
|
||
| } | ||
|
|
||
| resource "aws_lambda_permission" "lambda_permission_get_mtls_api" { |
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.
Is this not needed?
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.
no, it was only needed when the mtls-api was "extra" to the api. Now the lambda only exists in the mtls-api it doesn't need to have this extra permission.
d94270b to
eb4c636
Compare
|
Report for environment: ndr-devTerraform Initialization ⚙️
|

Also a new make command to build a workspace on dev.