Skip to content
# The EC2 AMI for K8s needs to be updated to prevent it from becoming outdated. This workflow will run in the beginning of every month to replace the existing
# instances with new ones
name: Update K8s EC2 Instance
on:
schedule:
- cron: '0 0 1 * *' # run the workflow beginning of every month
workflow_dispatch: # be able to run the workflow on demand
push:
permissions:
id-token: write
contents: read
jobs:
k8s-patch-os:
strategy:
fail-fast: false
matrix:
instance: [
{ repo: 'amazon-cloudwatch-agent-operator', ec2_name: 'cw-agent-operator-release', language: 'java' },
# { repo: 'amazon-cloudwatch-agent-operator', ec2_name: 'cw-agent-operator-release', language: 'python' },
# { repo: 'amazon-cloudwatch-agent', ec2_name: 'cw-agent-release', language: 'java' },
# { repo: 'amazon-cloudwatch-agent', ec2_name: 'cw-agent-release', language: 'python' },
# { repo: 'aws-otel-python-instrumentation', ec2_name: 'adot-python-release', language: 'python' },
# { repo: 'aws-otel-java-instrumentation', ec2_name: 'adot-java-release', language: 'java' },
# { repo: 'aws-application-signals-test-framework', ec2_name: 'python-canary', language: 'python' },
{ repo: 'aws-application-signals-test-framework', ec2_name: 'java-canary', language: 'java' } ]
uses: ./.github/workflows/k8s-patch-os-jobs.yml
secrets: inherit
with:
repo: ${{ matrix.instance.repo }}
ec2_name: ${{ matrix.instance.ec2_name }}
language: ${{ matrix.instance.language }}