jon_brasher
11/21/2022, 4:54 PMmeltano config. To configure a specific environment, please use the option --environment=<environment name>.taylor
11/21/2022, 6:12 PMmeltano --environment=<yourenv> config <plugin> test ”jon_brasher
11/22/2022, 2:01 AMjon_brasher
11/22/2022, 2:02 AMtaylor
11/22/2022, 2:32 PMShould it even allow you to declare the config?I’m not sure I understand what you’re asking sorry. To clarify my answer more, the default for config is to set the values globally for your extractor. You can choose to set it specifically for an environment, but it’s not necessary. When you run invoke or test (or other pipelline-related command) it will read from the different configuration layers (https://docs.meltano.com/guide/configuration#configuration-layers), starting with environment variables (via .env as well). So you shouldn’t have to do anything special to get it to use the .env. Can you share your meltano.yml and the exact commands you were running?/
jon_brasher
11/22/2022, 2:40 PMversion: 1
default_environment: dev
project_id: 3c178417-5a07-4152-a4ff-0f0507f0a327
environments:
- name: dev
config:
plugins:
extractors:
- name: tap-openweathermap
config:
current_weather_city_name: Louisville
forecast_weather_longitude: -85.7634
forecast_weather_lattitude: 38.2438
- name: staging
- name: prod
plugins:
extractors:
- name: tap-openweathermap
variant: matatika
pip_url: git+<https://github.com/Matatika/tap-openweathermap.git>
loaders:
- name: target-jsonl
variant: andyh1203
pip_url: target-jsonljon_brasher
11/22/2022, 2:41 PM.env TAP_OPENWEATHERMAP_API_KEY='<key>'jon_brasher
11/22/2022, 2:41 PMmeltano --environment=dev config tap-openweathermap test
2022-11-22T02:00:42.269404Z [info ] Environment 'dev' is active
Need help fixing this problem? Visit <http://melta.no/> for troubleshooting steps, or to
join our friendly Slack community.
Plugin configuration is invalid
JSONSchema was: {'type': 'object', 'properties': {'api_key': {'type': ['string'], 'description': 'API Key is a required parameter to query the api endpoints'}, 'current_weather_city_name': {'type': ['string'], 'description': 'City name that you want to get weather for'}, 'forecast_weather_longitude': {'type': ['string'], 'description': 'Longitude of city to get forecast for'}, 'forecast_weather_lattitude': {'type': ['string'], 'description': 'Lattitude of city to get forecast for'}}, 'required': ['api_key', 'current_weather_city_name', 'forecast_weather_longitude', 'forecast_weather_lattitude']}taylor
11/22/2022, 2:45 PMmeltano --environment=dev config tap-openweathermap does it list all of the config properly?taylor
11/22/2022, 2:45 PMjon_brasher
11/22/2022, 2:45 PMjon_brasher
11/22/2022, 2:46 PMjon_brasher
11/22/2022, 2:47 PMtaylor
11/22/2022, 2:47 PMtaylor
11/22/2022, 2:47 PMtaylor
11/23/2022, 4:38 PM