Skip to content

Commit 04d34ad

Browse files
committed
test boto3 budgets
1 parent 04c45fa commit 04d34ad

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/test.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,5 @@ jobs:
3131
- name: Run boto3 by script
3232
run: |
3333
python test_boto3.py
34+
env:
35+
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}

test_boto3.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1+
import os
12
import boto3
3+
24
ec2 = boto3.client("ec2")
35
ec2.describe_regions()
6+
budgets = session.client("budgets")
7+
budgets.describe_budgets(AccountId=os.environ["AWS_ACCOUNT_ID"])
48
print("success")

0 commit comments

Comments
 (0)