Skip to content

feat(tag-page-rendering): Scale EC2 instances to 0 - #16922

Merged
akash1810 merged 1 commit into
mainfrom
tag-page-rendering-0-ec2
Oct 12, 2026
Merged

akash1810 merged 1 commit into
mainfrom
tag-page-rendering-0-ec2

Conversation

@akash1810

@akash1810 akash1810 commented Oct 12, 2026 •

Copy link
Copy Markdown
Member

What does this change?

Since #16746, ECS has been serving 100% of CODE. Since #16908, ECS has been serving 100% of PROD.

This change scales down the EC2 infrastructure of these apps to 0 instances. This has two benefits:

  • Cost saving
  • Reducing "noise" from logs by removing EC2 logs (application and launch configuration)

How has this change been tested?

N/A.

Since #16746, ECS has been serving 100% of CODE.
Since #16908, ECS has been serving 100% of PROD.

This change scales down the EC2 infrastructure of these apps to 0 instances.
This has two benefits:
- Cost saving
- Reducing "noise" from logs by removing EC2 launch configuration logs
@akash1810
akash1810 requested a review from a team as a code owner October 12, 2026 07:13
@akash1810 akash1810 added the feature Departmental tracking: work on a new feature label Oct 12, 2026
@github-actions

Copy link
Copy Markdown

🚀 Image pushed to AWS ECR

Image digest: sha256:bfbfe3087cc871aa0a507f6740e9614a77e19366ceca37fee1bb6ac22e800655

🐛 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:bfbfe3087cc871aa0a507f6740e9614a77e19366ceca37fee1bb6ac22e800655"

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

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

# 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.

@akash1810
akash1810 added this pull request to the merge queue Oct 12, 2026
Merged via the queue into main with commit 26ceca7 Oct 12, 2026
33 checks passed
@akash1810
akash1810 deleted the tag-page-rendering-0-ec2 branch October 12, 2026 09:12
@gu-prout

gu-prout Bot commented Oct 12, 2026

Copy link
Copy Markdown

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

akash1810 added a commit that referenced this pull request Oct 13, 2026
Validate the weighting configuration: if a target is set to receive traffic, ensure it has some compute.

This is after #16922 and #16757 accidentally edited the wrong "minimum" value.
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