Skip to content

Commit

Permalink
Techdebt: Retrieve static data from Malaysia (#8098)
Browse files Browse the repository at this point in the history
  • Loading branch information
bblommers authored Sep 8, 2024
1 parent 893c6c9 commit 00bf688
Show file tree
Hide file tree
Showing 26 changed files with 282 additions and 26 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/data-update_ssm-optimized-amis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Data Update:
# SSM Optmized AMIs
#
# This Github Action:
# - executes the script that updates the SSM Optimized AMI's that come bundled with Moto
# - creates a PR
#
name: "DataUpdate_SSMoptimizedAMIs"

on:
schedule:
- cron: '00 10 1 * *'
workflow_dispatch:

jobs:
update:
name: Update SSM Optimized AMIs
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/master' && github.repository == 'getmoto/moto' }}
permissions:
id-token: write
contents: write
pull-requests: write

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.9

- name: Configure AWS
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-east-1
role-to-assume: arn:aws:iam::682283128318:role/GithubActionsRole

- name: Pull SSM Optimized AMIs from AWS
run: |
pip install boto3
pip install moto[all]
python scripts/ssm_get_optimized_amis.py
- name: Create PR
uses: peter-evans/create-pull-request@v6
with:
branch: 'chore-update-ssm-amis-${{ github.run_number }}'
title: "chore: update SSM Instance AMI's"
commit-message: "chore: update SSM Optimized AMI's"
Loading

0 comments on commit 00bf688

Please sign in to comment.