Skip to content

Commit 6be9655

Browse files
committed
Add run.sh scripts for Python SDK examples
1 parent b4eb3ed commit 6be9655

File tree

10 files changed

+110
-0
lines changed
  • tuts
    • 001-lightsail-gs/python
    • 002-vpc-gs/python
    • 003-s3-gettingstarted/python
    • 004-cloudmap-custom-attributes/python
    • 005-cloudfront-gettingstarted/python
    • 008-vpc-private-servers-gs/python
    • 009-vpc-ipam-gs/python
    • 010-cloudmap-service-discovery/python
    • 011-getting-started-batch-fargate/python
    • 012-transitgateway-gettingstarted/python

10 files changed

+110
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
# Run the Python SDK scenario for this tutorial.
3+
set -eo pipefail
4+
cd "$(dirname "$0")"
5+
[ ! -d ".venv" ] && python3 -m venv .venv
6+
source .venv/bin/activate
7+
pip install -q -r requirements.txt
8+
echo ""
9+
echo "$ python3 scenario_getting_started.py"
10+
echo ""
11+
python3 scenario_getting_started.py

tuts/002-vpc-gs/python/run.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
# Run the Python SDK scenario for this tutorial.
3+
set -eo pipefail
4+
cd "$(dirname "$0")"
5+
[ ! -d ".venv" ] && python3 -m venv .venv
6+
source .venv/bin/activate
7+
pip install -q -r requirements.txt
8+
echo ""
9+
echo "$ python3 scenario_getting_started.py"
10+
echo ""
11+
python3 scenario_getting_started.py
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
# Run the Python SDK scenario for this tutorial.
3+
set -eo pipefail
4+
cd "$(dirname "$0")"
5+
[ ! -d ".venv" ] && python3 -m venv .venv
6+
source .venv/bin/activate
7+
pip install -q -r requirements.txt
8+
echo ""
9+
echo "$ python3 scenario_getting_started.py"
10+
echo ""
11+
python3 scenario_getting_started.py
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
# Run the Python SDK scenario for this tutorial.
3+
set -eo pipefail
4+
cd "$(dirname "$0")"
5+
[ ! -d ".venv" ] && python3 -m venv .venv
6+
source .venv/bin/activate
7+
pip install -q -r requirements.txt
8+
echo ""
9+
echo "$ python3 scenario_getting_started.py"
10+
echo ""
11+
python3 scenario_getting_started.py
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
# Run the Python SDK scenario for this tutorial.
3+
set -eo pipefail
4+
cd "$(dirname "$0")"
5+
[ ! -d ".venv" ] && python3 -m venv .venv
6+
source .venv/bin/activate
7+
pip install -q -r requirements.txt
8+
echo ""
9+
echo "$ python3 scenario_getting_started.py"
10+
echo ""
11+
python3 scenario_getting_started.py
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
# Run the Python SDK scenario for this tutorial.
3+
set -eo pipefail
4+
cd "$(dirname "$0")"
5+
[ ! -d ".venv" ] && python3 -m venv .venv
6+
source .venv/bin/activate
7+
pip install -q -r requirements.txt
8+
echo ""
9+
echo "$ python3 scenario_getting_started.py"
10+
echo ""
11+
python3 scenario_getting_started.py

tuts/009-vpc-ipam-gs/python/run.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
# Run the Python SDK scenario for this tutorial.
3+
set -eo pipefail
4+
cd "$(dirname "$0")"
5+
[ ! -d ".venv" ] && python3 -m venv .venv
6+
source .venv/bin/activate
7+
pip install -q -r requirements.txt
8+
echo ""
9+
echo "$ python3 scenario_getting_started.py"
10+
echo ""
11+
python3 scenario_getting_started.py
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
# Run the Python SDK scenario for this tutorial.
3+
set -eo pipefail
4+
cd "$(dirname "$0")"
5+
[ ! -d ".venv" ] && python3 -m venv .venv
6+
source .venv/bin/activate
7+
pip install -q -r requirements.txt
8+
echo ""
9+
echo "$ python3 scenario_getting_started.py"
10+
echo ""
11+
python3 scenario_getting_started.py
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
# Run the Python SDK scenario for this tutorial.
3+
set -eo pipefail
4+
cd "$(dirname "$0")"
5+
[ ! -d ".venv" ] && python3 -m venv .venv
6+
source .venv/bin/activate
7+
pip install -q -r requirements.txt
8+
echo ""
9+
echo "$ python3 scenario_getting_started.py"
10+
echo ""
11+
python3 scenario_getting_started.py
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
# Run the Python SDK scenario for this tutorial.
3+
set -eo pipefail
4+
cd "$(dirname "$0")"
5+
[ ! -d ".venv" ] && python3 -m venv .venv
6+
source .venv/bin/activate
7+
pip install -q -r requirements.txt
8+
echo ""
9+
echo "$ python3 scenario_getting_started.py"
10+
echo ""
11+
python3 scenario_getting_started.py

0 commit comments

Comments
 (0)