Skip to content

Update tag-page-rendering in CODE to use ecs rather than ec2 - #16926

Merged
marjisound merged 2 commits into
mainfrom
tag-page-rendering-code-0-ec2
Oct 12, 2026
Merged

marjisound merged 2 commits into
mainfrom
tag-page-rendering-code-0-ec2

Conversation

@marjisound

@marjisound marjisound commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Co-authored-by: Ravi 7014230+arelra@users.noreply.github.com

What does this change?

Compliments this PR #16922 to also make EC2 instances 0 for tag-page-rendering in CODE and instead increases the ECS tasks

Co-authored-by: Ravi <7014230+arelra@users.noreply.github.com>
@marjisound
marjisound requested a review from a team as a code owner October 12, 2026 15:26
@github-actions

github-actions Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

🚀 Image pushed to AWS ECR

Image digest: sha256:a66bae4a3851c32b68ca3d36dad4246e6ccb2910a2e7c46ca6cfb4524fcf93cb

🐛 Run the image locally

The following can be used to run the image locally:

# Refer to image using the immutable digest. Find alternatives below.
IMAGE_IDENTIFIER="@sha256:a66bae4a3851c32b68ca3d36dad4246e6ccb2910a2e7c46ca6cfb4524fcf93cb"

# Refer to image using branch tag
# IMAGE_IDENTIFIER=":branch-tag-page-rendering-code-0-ec2"

# Refer to image using build tag
# IMAGE_IDENTIFIER=":build-32328"

# Set environment variables for the AWS CLI
AWS_PROFILE="<A_PROFILE_FROM_JANUS>"
AWS_DEFAULT_REGION="eu-west-1"

IMAGE_ACCOUNT_ID=$(aws ssm get-parameter --name /organisation/accounts/artifacts --query "Parameter.Value" --output text)
REGISTRY="${IMAGE_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com"
IMAGE="${REGISTRY}/guardian/dotcom-rendering/dotcom-rendering${IMAGE_IDENTIFIER}"

# Login to AWS ECR https://docs.aws.amazon.com/AmazonECR/latest/userguide/registry_auth.html
aws ecr get-login-password | docker login --username AWS --password-stdin $REGISTRY

# Pull the image
docker pull $IMAGE

# Run the image. You'll likely need to set additional flags. See https://docs.docker.com/reference/cli/docker/container/run.
docker run $IMAGE

From guardian/actions-ecr.

Co-authored-by: Ravi <7014230+arelra@users.noreply.github.com>
@marjisound marjisound added the feature Departmental tracking: work on a new feature label Oct 12, 2026
@marjisound
marjisound added this pull request to the merge queue Oct 12, 2026
Merged via the queue into main with commit 9e7f3d2 Oct 12, 2026
29 of 30 checks passed
@marjisound
marjisound deleted the tag-page-rendering-code-0-ec2 branch October 12, 2026 15:58
@gu-prout

gu-prout Bot commented Oct 12, 2026

Copy link
Copy Markdown

Seen on PROD (merged by @marjisound 5 minutes and 52 seconds ago) Please check your changes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Departmental tracking: work on a new feature Seen-on-PROD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants