Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding SQS wait for empty queue #71

Merged
merged 8 commits into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading