Jerry Bao
07/07/2023, 4:52 PMEnvVar
with AirbyteResource
to configure a connection to airbyte, but when I try to configure the host, port with EnvVar
, it looks like it is not using the values specified in .env
but instead using the name of the EnvVar
when trying to load asset defs at initialization time. after some reading up here I see that they're retrieved at launch time instead of init time, which might be the reason for why the EnvVar
is not working properly for me.
my question is, if I want to use load_assets_from_airbyte_instance
, does that mean I cannot use EnvVar
to configure the AirbyteResource
? if so, what's the best way to load airbyte configuration? os.getenv
?Lydia Lim Li Han
07/31/2023, 8:23 AMTim Castillo
07/31/2023, 8:05 PMfivetran_instance = fivetran_resource(
build_init_resource_context(
(
{
"api_key": {"env": "FIVETRAN_API_KEY"},
"api_secret": {"env": "FIVETRAN_API_SECRET"},
}
)
)
)
Lydia Lim Li Han
08/01/2023, 2:17 AMNicolas Guary
08/07/2023, 2:00 PMairbyte_resource
otherwise it wouldn't work) :
airbyte_instance = airbyte_resource(
build_init_resource_context(
(
{
"host": {"env": "AIRBYTE_HOST"},
"port": {"env": "AIRBYTE_PORT"},
"username": {"env": "AIRBYTE_ADMIN_USER"},
"password": {"env": "AIRBYTE_ADMIN_PASSWORD"},
}
)
)
)
Hiroto Yamakawa
08/08/2023, 12:18 PM