Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion amiadapters/configuration/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ def set_global_aws_profile(aws_profile: str = None):
raise ValueError(
f"No AWS profile specified. If using the CLI, use the --profile option or set the {AWS_PROFILE_ENV_VAR_NAME} environment variable."
)
os.environ[AWS_PROFILE_ENV_VAR_NAME] = aws_profile
# Overwrite with the provided profile if specified
if aws_profile is not None:
os.environ[AWS_PROFILE_ENV_VAR_NAME] = aws_profile
os.environ[AWS_REGION_ENV_VAR_NAME] = DEFAULT_AWS_REGION


Expand Down
1 change: 1 addition & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ run_ssh "cd $REMOTE_DIR && \
AMI_CONNECT__AIRFLOW_METASTORE_CONN='$AIRFLOW_DB_CONN' \
AMI_CONNECT__AIRFLOW_SITE_URL='$AIRFLOW_SITE_URL' \
FULL_RESTART='$FULL_RESTART' \
AMI_CONNECT_REPO='$AMI_CONNECT_REPO' \
AMI_CONNECT_NEPTUNE_REPO_URL='$AMI_CONNECT_NEPTUNE_REPO_URL' \
bash remote-deploy.sh"

Expand Down