Skip to content

test boto3 budgets

test boto3 budgets #6

Workflow file for this run

name: Test
on:
push:
permissions:
id-token: write
contents: read
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: ap-northeast-1
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/${{ secrets.AWS_ASSUME_ROLE_NAME }}
- name: Get caller identity
run: |
aws sts get-caller-identity
- name: Run boto3
shell: python
run: |
import boto3
ec2 = boto3.client("ec2")
ec2.describe_regions()
print("success")
- name: Run boto3 by script
run: |
python test_boto3.py
env:
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}