Skip to content

Releases: ministryofjustice/cloud-platform-terraform-ecr-credentials

v8.0.2

Choose a tag to compare

@FolarinOyenuga FolarinOyenuga released this 22 Jul 12:32
a8ce80e

What's Changed

New Contributors

Full Changelog: 8.0.1...8.0.2

8.0.1

Choose a tag to compare

@JakeBroughton JakeBroughton released this 02 Jun 10:36
8803b93

What's Changed

New Contributors

Full Changelog: 8.0.0...8.0.1

8.0.0

Choose a tag to compare

@sj-williams sj-williams released this 27 Aug 10:19
2810dfe

Release 8.0.0 - BREAKING CHANGES

IRSA policy

This release introduces a change to the behaviour of IRSA IAM Policy creation for the ECR Module.

By default, no IRSA IAM policy will be created.

If you wish to have this created in order to query the AWS ECR API from your namespace (for example via the Cloud Platform AWS CLI service pod), then you'll need to pass in the following argument to your module call:

module "ecr" {
    ...
    ...
    enable_irsa = true
}

This change has been introduced to support Cloud Platform's effort in reducing the count of unused IAM policies

What's Changed

Full Changelog: 7.1.1...8.0.0

v7.1.1

Choose a tag to compare

@sj-williams sj-williams released this 08 Apr 13:43
c80fbee

Bugfix

This release addresses issue where updating team_name CP environments Terraform variable forced recreate of ECR repository.

Other Changes

Full Changelog: 7.1.0...7.1.1

7.1.0

Choose a tag to compare

@jasonBirchall jasonBirchall released this 07 Oct 09:19
ad7eaaf

What's Changed

New Contributors

Full Changelog: 7.0.0...7.1.0

v7.0.0

Choose a tag to compare

@sj-williams sj-williams released this 01 May 14:16
6e9c083

What's Changed

Full Changelog: 6.1.1...7.0.0

Breaking Changes

Headline:
If optional github_environments field is set, any pre-existing default repository ECR secrets and variables will be deleted.

This release introduces functionality that could potentially break some existing GitHub Actions pipelines that utilise GitHub Secrets and Variables. Please read this guidance thoroughly and check that your GitHub Actions workflows are configured correctly.

Action required

If you’re using the ECR module in your environment, and are not setting the optional github_environments field, then this 7.0.0 update will have no impact on your CI/CD workflows and you can ignore this guidance.

If you are setting the github_environments field, then you should be accessing your ECR secrets and variables:

ECR_ROLE_TO_ASSUME
ECR_REGION
ECR_REPOSITORY
(these will vary if you are setting github_actions_prefix in your module call)

from your own defined GitHub environments within your repository workflows. This can be verified by reviewing your GitHub Actions yaml ECR build configurations and verifying that your ECR secrets and variables are scoped within an environment block, similar to the below workflow snippet:

on:
  push:
    branches: [main]

jobs:
  ecr:
  environment: development          # <-- Your environment name here
    runs-on: ubuntu-latest
    ...
    ...
    steps:
     ...
     # Assume role in Cloud Platform
     - uses: aws-actions/configure-aws-credentials@v2
        with:
          role-to-assume: ${{ secrets.ECR_ROLE_TO_ASSUME }}          # <-- environment scoped secret
          aws-region: ${{ vars.ECR_REGION }}          # <-- environment scoped variable

Should you find any ECR secrets or variables that are referenced outside of an environment block's scope, then you are still using the default repository GitHub variables, and you must remediate before updating.

6.1.1

Choose a tag to compare

@jackstockley89 jackstockley89 released this 02 Feb 18:19
0386403

What's Changed

New Contributors

Full Changelog: 6.1.0...6.1.1

v6.1.0

Choose a tag to compare

@jakemulley jakemulley released this 10 Aug 10:19
79c0bdb

What's Changed

New Contributors

Full Changelog: 6.0.0...6.1.0

v6.0.0

Choose a tag to compare

@jakemulley jakemulley released this 27 Jul 10:16
64ad5be

What's Changed

Full Changelog: 5.3.0...6.0.0

5.3.0

Choose a tag to compare

@sj-williams sj-williams released this 28 Jun 15:39
7a86e2d

What's Changed

New Contributors

Full Changelog: 5.2.0...5.3.0