Skip to content

Commit fb734dc

Browse files
authored
update workflows for cloudpod + README (#14)
* add api-key for loading cloudpod * fixup * fixup * update README: dead-links + pod injection
1 parent 5e69efa commit fb734dc

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

.github/workflows/cloudpod_release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,15 @@ jobs:
6060
pytest tests
6161
6262
- name: Save the Cloud Pod
63-
uses: HarshCasper/cloud-pod-save@v0.1.0
64-
with:
65-
name: 'release-pod.zip'
66-
location: 'disk'
63+
env:
64+
LOCALSTACK_API_KEY: ${{ secrets.LOCALSTACK_API_KEY }}
65+
run: |
66+
localstack state export release-pod.zip
6767
6868
- name: Prepare Release Notes
6969
run: |
7070
echo "This release includes the Cloud Pod of the sample created with LocalStack Version \`${{ inputs.release-tag || 'latest'}}\`." > Release.txt
71-
echo "You can download the \`release-pod.zip\` and inject it manually by running \`localstack pod load file://release-pod.zip\`, or use the Cloud Pods Launchpad." >> Release.txt
71+
echo "You can download the \`release-pod.zip\` and inject it manually by running \`localstack state import release-pod.zip\`, or use the Cloud Pods Launchpad." >> Release.txt
7272
echo "### Cloud Pods Launchpad" >> Release.txt
7373
echo "You can click the Launchpad to inject the the pod into your running LocalStack instance using the WebUI:" >> Release.txt
7474
echo "[![LocalStack Pods Launchpad](https://localstack.cloud/gh/launch-pod-badge.svg)](https://app.localstack.cloud/launchpad?url=https://github.com/$GITHUB_REPOSITORY/releases/download/${{ inputs.release-tag || 'latest'}}/release-pod.zip)" >> Release.txt

.github/workflows/test_cloudpods.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,10 @@ jobs:
6969
echo "Startup complete"
7070
7171
- name: Inject Pod
72+
env:
73+
LOCALSTACK_API_KEY: ${{ secrets.LOCALSTACK_API_KEY }}
7274
run: |
73-
localstack pod load file://release-pod.zip
75+
localstack state import release-pod.zip
7476
7577
- name: Run Tests
7678
env:

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,9 @@ Please refer to the [contributing file](CONTRIBUTING.md) for more details on how
249249
[Cloud Pods](https://docs.localstack.cloud/user-guide/tools/cloud-pods/) are a mechanism that allows you to take a snapshot of the state in your current LocalStack instance, persist it to a storage backend, and easily share it with your team members.
250250

251251
You can convert your current AWS infrastructure state to a Cloud Pod using the `localstack` CLI.
252-
Check out our [Getting Started guide](https://docs.localstack.cloud/user-guide/tools/cloud-pods/getting-started/) and [LocalStack Cloud Pods CLI reference](https://docs.localstack.cloud/user-guide/tools/cloud-pods/pods-cli/) to learn more about Cloud Pods and how to use them.
252+
Check out our [Getting Started guide](https://docs.localstack.cloud/user-guide/cloud-pods/getting-started/) and [LocalStack Cloud Pods CLI reference](https://docs.localstack.cloud/user-guide/cloud-pods/pods-cli/ to learn more about Cloud Pods and how to use them.
253253

254-
To inject a Cloud Pod you can use [Cloud Pods Launchpad](https://docs.localstack.cloud/user-guide/tools/cloud-pods/launchpad/) wich quickly injects Cloud Pods into your running LocalStack container.
254+
To inject a Cloud Pod you can use [Cloud Pods Launchpad](https://docs.localstack.cloud/user-guide/cloud-pods/launchpad/) wich quickly injects Cloud Pods into your running LocalStack container.
255255

256256
Click here [![LocalStack Pods Launchpad](https://localstack.cloud/gh/launch-pod-badge.svg)](https://app.localstack.cloud/launchpad?url=https://github.com/localstack/sample-serverless-image-resizer-s3-lambda/releases/download/latest/release-pod.zip) to launch the Cloud Pods Launchpad and inject the Cloud Pod for this application by clicking the `Inject` button.
257257

@@ -261,5 +261,5 @@ First, you need to download the pod you want to inject from the [releases](https
261261
Then run:
262262

263263
```sh
264-
localstack pod load file://$(pwd)/release-pod.zip
264+
localstack state import /path/to/release-pod.zip
265265
```

0 commit comments

Comments
 (0)