Skip to content

Tear down Interactives EC2 in CODE and PROD - #17272

Open
aug24 wants to merge 2 commits into
mainfrom
tear-down-interactives-ec2-in-code-and-prod
Open

aug24 wants to merge 2 commits into
mainfrom
tear-down-interactives-ec2-in-code-and-prod

Conversation

@aug24

@aug24 aug24 commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

What does this change?

The Interactive Renderer service is now 100% ECS. The EC2 service is not being used and can be removed.


@aug24
aug24 requested a review from a team as a code owner November 17, 2026 10:43
@aug24 aug24 added the feature Departmental tracking: work on a new feature label Nov 17, 2026
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

🚀 Image for dotcom-rendering pushed to AWS ECR

Image digest: sha256:c6f881aa390343afce8da19163e780b89c2aa6fb46d1b5689aad569d01898369

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

# Refer to image using branch tag
# IMAGE_IDENTIFIER=":branch-tear-down-interactives-ec2-in-code-and-prod"

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

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

@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

policies: {
step: {
cpu: cpuScalingSteps,
latency: {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The absence of latency based scaling in ecs is a query - should we have this? Can we have this?

@aug24 aug24 added the run_chromatic Runs chromatic when label is applied label Nov 17, 2026

@akash1810 akash1810 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'd also need to adjust CI and the riff-raff.yaml. See #16965 for an example.

This branch has not been deployed

No deployments
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 run_chromatic Runs chromatic when label is applied

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants