Skip to content

Commit

Permalink
Merge pull request #4054 from ministryofjustice/point-to-prod-infra
Browse files Browse the repository at this point in the history
Point github repository terraform infrastructure to prod cloud platform infrastructure
  • Loading branch information
levgorbunov1 authored Jan 19, 2024
2 parents 156c30b + 8244b97 commit 0ed54de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cicd-terraform-github-repos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.TERRAFORM_GITHUB_REPOS_S3_ROLE_ARN_DEV}}
role-to-assume: ${{ secrets.TERRAFORM_GITHUB_REPOS_S3_ROLE_ARN_PROD}}
aws-region: eu-west-2

- name: Terraform fmt
Expand Down
6 changes: 3 additions & 3 deletions terraform/github/repositories/main.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
terraform {
backend "s3" {
acl = "private"
bucket = "cloud-platform-91d489cf0077d4786792c06920fa7f61"
bucket = "cloud-platform-fad89ef06d68fdbc1928cb37acd8fc9f"
encrypt = true
key = "terraform/github-repos/operations-engineering-dev/terraform.tfstate"
key = "terraform/github-repos/operations-engineering-prod/terraform.tfstate"
region = "eu-west-2"
}
required_providers {
Expand All @@ -21,5 +21,5 @@ terraform {

provider "github" {
token = var.github_token
owner = "ministryofjustice-test"
owner = "ministryofjustice"
}

0 comments on commit 0ed54de

Please sign in to comment.