From 967a55eb694837b967f2a8a778645699f75ac690 Mon Sep 17 00:00:00 2001 From: Ereli Eran Date: Mon, 6 Jan 2025 19:31:34 -0500 Subject: [PATCH 1/3] use uv --- setup/action.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/setup/action.yml b/setup/action.yml index 1d4f811..7875bc5 100644 --- a/setup/action.yml +++ b/setup/action.yml @@ -31,10 +31,9 @@ runs: with: python-version: '3.10' - - name: Pip Upgrade - shell: bash - run: pip install --upgrade pip - + - name: Install uv + uses: astral-sh/setup-uv@v5 + - name: Install duploctl id: install-duploctl shell: bash @@ -42,9 +41,9 @@ runs: VERSION: ${{ inputs.version }} run: | if [[ "$VERSION" == "latest" ]]; then - pip install duplocloud-client + uv pip install duplocloud-client --system else - pip install duplocloud-client==$VERSION + uv pip install duplocloud-client=$VERSION --system fi - name: Duplo Version From 9d7a6e046ae5485b17b34205860df7b7a024d2e5 Mon Sep 17 00:00:00 2001 From: Ereli Eran Date: Mon, 6 Jan 2025 19:52:42 -0500 Subject: [PATCH 2/3] fail if can't install the package --- setup/action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/action.yml b/setup/action.yml index 7875bc5..9079c90 100644 --- a/setup/action.yml +++ b/setup/action.yml @@ -41,9 +41,9 @@ runs: VERSION: ${{ inputs.version }} run: | if [[ "$VERSION" == "latest" ]]; then - uv pip install duplocloud-client --system + uv pip install duplocloud-client --system || exit 1 else - uv pip install duplocloud-client=$VERSION --system + uv pip install duplocloud-client==$VERSION --system || exit 1 fi - name: Duplo Version From 3fe107ad91e9f8dff4e1ef35a2e6f4aaf0a8383d Mon Sep 17 00:00:00 2001 From: Ereli Date: Tue, 22 Jul 2025 16:31:00 -0400 Subject: [PATCH 3/3] replace dynamodb with s3 --- terraform-module/setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terraform-module/setup.sh b/terraform-module/setup.sh index 3d88eb2..ab8c108 100755 --- a/terraform-module/setup.sh +++ b/terraform-module/setup.sh @@ -8,9 +8,9 @@ ARGS=( ) if [ "$AWS_ENABLED" == "true" ]; then - echo "AWS enabled, setting up backend config for S3 and DynamoDB" + echo "AWS enabled, setting up backend config for S3 with lockfile" ARGS+=( - -backend-config=dynamodb_table="${PREFIX}-${DUPLO_ACCOUNT_ID}-lock" + -backend-config=use_lockfile=true -backend-config=region=$DUPLO_DEFAULT_REGION -backend-config=bucket=$DUPLO_TF_BUCKET )