You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: 'Configures AWS, renders Task Definition, and deploys to ECS for a single service/region combination.'
3
+
4
+
inputs:
5
+
task-definition:
6
+
description: 'The task definition file path (e.g., .aws/sandbox-us-west-2-translation-service.json)'
7
+
required: true
8
+
container-name:
9
+
description: 'The name of the container in the task definition to update (e.g., sandbox-translation-service-container)'
10
+
required: true
11
+
region:
12
+
description: 'The AWS region to deploy to'
13
+
required: true
14
+
service:
15
+
description: 'The name of the service to deploy (e.g., translation-service)'
16
+
required: true
17
+
cluster:
18
+
description: 'The name of the ECS cluster to deploy to (e.g., platform-sandbox-us-west-2)'
19
+
required: true
20
+
role:
21
+
description: 'The IAM Role ARN to assume for deployment'
22
+
required: true
23
+
image:
24
+
description: 'The ECR image URL (e.g., 123456789012.dkr.ecr.us-west-2.amazonaws.com/my-image:latest)'
25
+
required: true
26
+
27
+
runs:
28
+
using: "composite"
29
+
steps:
30
+
- name: Checkout Code
31
+
uses: actions/checkout@v5
32
+
33
+
- name: Job Info
34
+
shell: bash
35
+
run: |
36
+
echo "Deploying to ${{ inputs.environment }} in region ${{ inputs.region }} for service ${{ inputs.service }} with role ${{ inputs.role }} using image tag ${{ inputs.image_tag }}"
37
+
38
+
- name: Configure AWS Credentials
39
+
uses: aws-actions/configure-aws-credentials@v3
40
+
with:
41
+
role-to-assume: ${{ inputs.role }}
42
+
role-session-name: github-action-session-deploy
43
+
aws-region: ${{ inputs.region }}
44
+
45
+
- name: Fill in the new image ID in the Amazon ECS task definition
0 commit comments