nick_muller
04/20/2021, 5:53 PMENV MELTANO_DATABASE_URI <postgresql://username:password@host>:Port/db
Is there any way to use the .env file without pushing it to the repo? I already use environment variables in the meltano.yml file for a tap config, but i can't use them to define the database uri.
Is anyone having an idea to solve this problem? Is it possible to set the meltano config in the meltano.yml?
Thank you guys !
Greetings
Nickaaronsteers
04/20/2021, 6:48 PMdouwe_maan
04/20/2021, 7:05 PMmeltano.yml or the repo, but you'd configure it directly in your production environment using its environment variable/secret managerdouwe_maan
04/20/2021, 7:05 PMIs it possible to set the meltano config in the meltano.yml?If you don't mind having sensitive info in
meltano.yml, you can add database_uri: <postgresql://etc> to the top of the fileaaronsteers
04/20/2021, 7:08 PMnick_muller
04/20/2021, 7:14 PMdatabase_uri: postgresql://$username... to the top of the meltano.yml file (without sensitive data). Do I need to add some things before or just database_uri to the top? I will give you guys some feedback here.douwe_maan
04/20/2021, 7:16 PMdatabase_uri key/value pair just needs to be at the top level of meltano.yml, it doesn't necessarily need to be the very first one in the file. If you add it there, you should see your value show up in meltano config meltanonick_muller
04/20/2021, 7:16 PMnick_muller
04/22/2021, 6:13 AMdouwe_maan
04/22/2021, 3:18 PMchris_kings-lynne
04/26/2021, 11:14 AMchris_kings-lynne
04/26/2021, 11:17 AMaaronsteers
04/26/2021, 4:46 PMchris_kings-lynne
04/28/2021, 1:02 AMchris_kings-lynne
04/28/2021, 1:02 AMaaronsteers
04/28/2021, 3:10 PMchris_kings-lynne
04/29/2021, 5:58 AMchris_kings-lynne
04/29/2021, 5:58 AMARG MELTANO_IMAGE=meltano/meltano:latest
FROM $MELTANO_IMAGE
WORKDIR /project
# Install chamber
RUN curl -s <https://packagecloud.io/install/repositories/segment/chamber/script.deb.sh> | /bin/bash \
&& apt-get install -y chamber
# Install any additional requirements
COPY ./requirements.txt .
RUN pip install -r requirements.txt
# Install all plugins into the `.meltano` directory
COPY ./meltano.yml .
RUN meltano install
# Pin `discovery.yml` manifest by copying cached version to project root
RUN cp -n .meltano/cache/discovery.yml . 2>/dev/null || :
# Don't allow changes to containerized project files
ENV MELTANO_PROJECT_READONLY 1
# Tell Chamber to use the account default KMS key, and where to find it
ENV AWS_REGION ap-southeast-2
ENV CHAMBER_KMS_KEY_ALIAS aws/ssm
# Copy over remaining project files
COPY . .
# Expose default port used by `meltano ui`
EXPOSE 5000
ENTRYPOINT ["chamber", "exec", "meltano/tap-salesforce", "meltano/target-redshift", "--", "meltano"]chris_kings-lynne
04/29/2021, 5:59 AMchris_kings-lynne
04/29/2021, 6:00 AMroot@b866c0eb4b30:/project# chamber export --format dotenv meltano/tap-salesforce meltano/target-redshift
TAP_SALESFORCE_CLIENT_ID="xxx"
TAP_SALESFORCE_CLIENT_SECRET="xxxE"
TAP_SALESFORCE_REFRESH_TOKEN="xxx"
TAP_SALESFORCE_START_DATE="2021-04-01T00:00:00Z"
TARGET_REDSHIFT_DBNAME="xxx"
TARGET_REDSHIFT_DEFAULT_TARGET_SCHEMA_SELECT_PERMISSION="xxx"
TARGET_REDSHIFT_HOST="xxx"
TARGET_REDSHIFT_PASSWORD="xxx"
TARGET_REDSHIFT_PORT="xxx"
TARGET_REDSHIFT_S3_BUCKET="xxx"
TARGET_REDSHIFT_S3_KEY_PREFIX="xxx"
TARGET_REDSHIFT_USER="xxx"chris_kings-lynne
04/29/2021, 6:00 AMchris_kings-lynne
04/29/2021, 6:01 AMchris_kings-lynne
04/29/2021, 6:01 AM/meltano rather than per target and tapchris_kings-lynne
04/29/2021, 6:01 AMchris_kings-lynne
04/29/2021, 6:05 AMchris_kings-lynne
04/29/2021, 6:06 AMaaronsteers
04/29/2021, 4:40 PMandrew_stewart
06/04/2021, 5:23 PMchris_kings-lynne
06/06/2021, 2:18 AMENTRYPOINT ["chamber", "exec", "meltano", "meltano/target-redshift", "meltano/tap-salesforce", "--", "meltano"]chris_kings-lynne
06/06/2021, 2:18 AMchris_kings-lynne
06/06/2021, 2:19 AMchris_kings-lynne
06/06/2021, 2:19 AMchris_kings-lynne
06/06/2021, 2:21 AMandrew_stewart
06/07/2021, 6:23 PMENTRYPOINT empty - is that so you can specify it at run time, since ENVs can’t be used in ENTRYPOINT ?andrew_stewart
06/07/2021, 6:23 PMchris_kings-lynne
06/08/2021, 1:47 AMchris_kings-lynne
06/08/2021, 1:48 AMENTRYPOINT ["chamber", "exec", "meltano", "meltano/target-redshift", "meltano/tap-salesforce", "--", "meltano"]andrew_stewart
06/08/2021, 1:55 AMandrew_stewart
06/08/2021, 1:55 AMchris_kings-lynne
06/08/2021, 7:11 AMandrew_stewart
06/08/2021, 4:22 PMENTRYPOINT ["chamber", "exec", "$PARAM_STORE_PREFIX", "--", "meltano"]andrew_stewart
06/08/2021, 4:23 PMENTRYPOINT ["/bin/bash", "-c", "chamber", "exec", "$PARAM_STORE_PREFIX", "--", "meltano"] might work.chris_kings-lynne
06/09/2021, 1:39 AMchris_kings-lynne
06/09/2021, 1:40 AM139andrew_stewart
06/15/2021, 10:22 PMchris_kings-lynne
06/16/2021, 1:19 AMandrew_stewart
06/16/2021, 2:07 AMandrew_stewart
06/16/2021, 2:39 AMandrew_stewart
06/16/2021, 2:40 AMchris_kings-lynne
06/16/2021, 3:54 AMaaronsteers
06/16/2021, 4:54 AM