https://dagster.io/ logo
#ask-community
Title
# ask-community
a

Alexander Whillas

08/30/2022, 1:48 AM
hey, is it possible to set the user code host in an environmental variable, like this:
Copy code
load_from:
  - grpc_server:
      host: localhost
          env: USER_CODE_HOST
      port: 4266
      location_name: "my_grpc_server"
as you can in the
dagster.yaml
file? We're setting up AWS with CDK and might not have host name until deploying
m

Mike Atlas

08/30/2022, 4:29 PM
@Alexander Whillas in my environment, we're using Terraform, but have a private dns entry for user code
Copy code
load_from:
  - grpc_server:
      host: pipeline1.dagster.local
      port: 8001
      location_name: "pipeline1"
this private route 53 DNS entry is an
A
record and updated by an ECS service discovery update
perhaps you write a post-deploy hook (lambda?) that fetches the endpoint IP for your code and assigns it in the private dns entry (route 53)
a

Alexander Whillas

08/30/2022, 9:01 PM
we can figure it out before hand and will just hardcode it in there (for now). thanks mate