Skip to content

Commit

Permalink
Merge pull request #71 from hpcc-systems/aws-sqs-wait-empty
Browse files Browse the repository at this point in the history
Adding SQS wait for empty queue
  • Loading branch information
martdo02 authored Sep 6, 2024
2 parents a83384a + f2774c1 commit 718d106
Show file tree
Hide file tree
Showing 13 changed files with 11,025 additions and 10,806 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/Test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,20 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
node-version: [20.x, 22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/previous-releases

steps:
- uses: actions/checkout@v3
- name: Start LocalStack
run: |
pip install localstack==2.3.2
localstack start -d
echo "Waiting for LocalStack startup..."
localstack wait -t 30
echo "LocalStack startup complete"
- uses: actions/[email protected]
- uses: LocalStack/[email protected]
with:
image-tag: '3.7.2'
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Setup Terraform
uses: hashicorp/setup-terraform@v2.0.3
uses: hashicorp/setup-terraform@v3.1.2
- run: mkdir ~/.aws/
- run: echo -e "[default]\noutput = json\nregion = us-east-1\naws_access_key_id = foo\naws_secret_access_key = bar" > ~/.aws/credentials
- run: npm ci
Expand Down
13 changes: 6 additions & 7 deletions initLocalstack.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
provider "aws" {
profile = "default"
region = "us-east-1"
access_key = "1234"
secret_key = "xyz"
access_key = "test"
secret_key = "test"
skip_credentials_validation = true
skip_requesting_account_id = true
skip_metadata_api_check = true
Expand Down Expand Up @@ -31,10 +30,10 @@ resource "aws_dynamodb_table" "test-table" {
}
}

resource "aws_sqs_queue" "testQueue1" {
name = "testQueue"
resource "aws_sqs_queue" "testQueueAlpha" {
name = "testQueueAlpha"
}

resource "aws_sqs_queue" "testQueue2" {
name = "testQueue2"
resource "aws_sqs_queue" "testQueueBeta" {
name = "testQueueBeta"
}
Loading

0 comments on commit 718d106

Please sign in to comment.