diff --git a/setup/action.yml b/setup/action.yml index 7f7c21d..7247ca3 100644 --- a/setup/action.yml +++ b/setup/action.yml @@ -52,10 +52,9 @@ runs: with: python-version: ${{ inputs.python-version }} - - 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 @@ -63,9 +62,9 @@ runs: VERSION: ${{ inputs.version }} run: | if [[ "$VERSION" == "latest" ]]; then - pip install duplocloud-client + uv pip install duplocloud-client --system || exit 1 else - pip install duplocloud-client==$VERSION + uv pip install duplocloud-client==$VERSION --system || exit 1 fi - name: Duplo Version 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 )