File tree Expand file tree Collapse file tree 3 files changed +1
-15
lines changed
Expand file tree Collapse file tree 3 files changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ USERNAME ?= admin123
66DB_NAME ?= testdb
77USERPWD ?= mysecretpassword
88STACK_NAME ?= DMsSampleSetupStack
9- DB_ENDPOINT ?= postgres_server
109DB_PORT ?= 5432
1110ENDPOINT_URL = http://localhost.localstack.cloud:4566
1211export AWS_ACCESS_KEY_ID ?= test
@@ -16,7 +15,7 @@ export AWS_DEFAULT_REGION ?= us-east-1
1615VENV_RUN = . $(VENV_ACTIVATE )
1716
1817CLOUD_ENV = USERNAME=$(USERNAME ) DB_NAME=$(DB_NAME ) USERPWD=$(USERPWD ) STACK_NAME=$(STACK_NAME )
19- LOCAL_ENV = USERNAME=$(USERNAME ) DB_NAME=$(DB_NAME ) USERPWD=$(USERPWD ) STACK_NAME=$(STACK_NAME ) DB_ENDPOINT= $( DB_ENDPOINT ) DB_PORT=$(DB_PORT ) ENDPOINT_URL=$(ENDPOINT_URL )
18+ LOCAL_ENV = USERNAME=$(USERNAME ) DB_NAME=$(DB_NAME ) USERPWD=$(USERPWD ) STACK_NAME=$(STACK_NAME ) DB_PORT=$(DB_PORT ) ENDPOINT_URL=$(ENDPOINT_URL )
2019
2120ifeq ($(OS ) , Windows_NT)
2221 VENV_ACTIVATE = $(VENV_DIR)/Scripts/activate
Original file line number Diff line number Diff line change @@ -22,14 +22,3 @@ services:
2222 timeout : 2s
2323 retries : 5
2424 start_period : 10s
25- postgres_server :
26- container_name : dms-sample-postgres
27- image : postgres
28- ports :
29- - " 127.0.0.1:5432:5432"
30- restart : always
31- command : -c 'wal_level=logical' -c 'max_replication_slots=10' -c 'max_wal_senders=10'
32- environment :
33- - POSTGRES_DB=${DB_NAME:-testdb}
34- - POSTGRES_USER=${USERNAME:-admin123}
35- - POSTGRES_PASSWORD=${USERPWD:-mysecretpassword}
Original file line number Diff line number Diff line change @@ -59,8 +59,6 @@ def get_cfn_output():
5959def get_credentials (secret_arn : str ) -> Credentials :
6060 secret_value = secretsmanager .get_secret_value (SecretId = secret_arn )
6161 credentials = Credentials (** json .loads (secret_value ["SecretString" ]))
62- if credentials ["host" ] == "postgres_server" :
63- credentials ["host" ] = "localhost"
6462 return credentials
6563
6664
You can’t perform that action at this time.
0 commit comments