Skip to content

Commit 17b94d8

Browse files
committed
postgres-server remove
1 parent 7a1d4ef commit 17b94d8

File tree

3 files changed

+1
-15
lines changed

3 files changed

+1
-15
lines changed

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ USERNAME ?= admin123
66
DB_NAME ?= testdb
77
USERPWD ?= mysecretpassword
88
STACK_NAME ?= DMsSampleSetupStack
9-
DB_ENDPOINT ?= postgres_server
109
DB_PORT ?= 5432
1110
ENDPOINT_URL = http://localhost.localstack.cloud:4566
1211
export AWS_ACCESS_KEY_ID ?= test
@@ -16,7 +15,7 @@ export AWS_DEFAULT_REGION ?= us-east-1
1615
VENV_RUN = . $(VENV_ACTIVATE)
1716

1817
CLOUD_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

2120
ifeq ($(OS), Windows_NT)
2221
VENV_ACTIVATE = $(VENV_DIR)/Scripts/activate

docker-compose.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff 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}

run.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ def get_cfn_output():
5959
def 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

0 commit comments

Comments
 (0)