Skip to content

Commit

Permalink
Create localstack test resources
Browse files Browse the repository at this point in the history
  • Loading branch information
finnmich committed Dec 15, 2023
1 parent 43ca247 commit 33c1951
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ jobs:
steps:
- checkout
- localstack/startup
- run:
name: Setup Localstack resources
command: |
echo "Creating test resources"
awslocal secretsmanager create-secret --name my-secret --secret-string '{"PG_PASSWORD":"stacy"}'
cd test/lambda
awslocal lambda create-function --function-name localstack-lambda-url-example --runtime nodejs18.x --zip-file fileb://function.zip --handler index.handler --role arn:aws:iam::000000000000:role/lambda-role
cd ../..
echo "Done creating test resources"
- run:
name: Test and Deploy Package
command: |
Expand Down

0 comments on commit 33c1951

Please sign in to comment.