Skip to content

Commit 706370b

Browse files
committed
updates
1 parent b4ce418 commit 706370b

File tree

3 files changed

+29
-6
lines changed

3 files changed

+29
-6
lines changed

.github/workflows/stackql-deploy.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,25 @@ jobs:
3737
env_vars: 'AWS_REGION=us-east-1'
3838
# show_queries: 'true'
3939
# log_level: 'debug'
40+
41+
- name: Wait for 10 seconds
42+
run: |
43+
echo "Waiting for 10 seconds to allow resources to provision..."
44+
sleep 10
45+
shell: bash
46+
47+
- name: Test a Stack
48+
uses: stackql/[email protected]
49+
with:
50+
command: 'test'
51+
stack_dir: 'aws-stack'
52+
stack_env: 'dev'
53+
env_vars: 'AWS_REGION=us-east-1'
54+
55+
- name: Teardown a Stack
56+
uses: stackql/[email protected]
57+
with:
58+
command: 'teardown'
59+
stack_dir: 'aws-stack'
60+
stack_env: 'dev'
61+
env_vars: 'AWS_REGION=us-east-1'

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ stackql-azure-cloud-shell.sh
99
stackql-google-cloud-shell.sh
1010
.envrc
1111
.env
12+
myenv/
1213

1314
.DS_Store

aws-stack/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ For example, to deploy the stack to an environment labeled `sit`, run the follow
4141
4242
```bash
4343
stackql-deploy build \
44-
examples/aws/aws-stack sit \
44+
aws-stack sit \
4545
-e AWS_REGION=ap-southeast-2
4646
```
4747
4848
Use the `--dry-run` flag to view the queries to be run without actually running them, for example:
4949
5050
```bash
5151
stackql-deploy build \
52-
examples/aws/aws-stack sit \
52+
aws-stack sit \
5353
-e AWS_REGION=ap-southeast-2 \
5454
--dry-run
5555
```
@@ -60,16 +60,16 @@ To test a stack to ensure that all resources are present and in the desired stat
6060
6161
```bash
6262
stackql-deploy test \
63-
examples/aws/aws-stack sit \
63+
aws-stack sit \
6464
-e AWS_REGION=ap-southeast-2
6565
```
6666
6767
### Tearing down a stack
6868
69-
To destroy or deprovision all resources in a stack for our `sit` deployment example, run the following:
69+
To destroy or deprovision all resources in a stack for our `dev` deployment example, run the following:
7070
7171
```bash
7272
stackql-deploy teardown \
73-
examples/aws/aws-stack sit \
74-
-e AWS_REGION=ap-southeast-2
73+
aws-stack dev \
74+
-e AWS_REGION=us-east-1
7575
```

0 commit comments

Comments
 (0)