Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
dwilkie committed Sep 14, 2024
1 parent 24375d3 commit 1fc6611
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@ jobs:
{
"identifier": "switch-services-staging",
"environment": "staging",
"branch": "use_official_aws_lambda_images",
"branch": "develop",
"friendly_image_tag": "beta",
"image_tag": "stag-${{ github.sha }}"
},
{
"identifier": "switch-services",
"environment": "production",
"branch": "master",
"branch": "use_official_aws_lambda_images",
"friendly_image_tag": "latest",
"image_tag": "prod-${{ github.sha }}"
}
Expand Down
10 changes: 10 additions & 0 deletions infrastructure/production/terraform.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ provider "aws" {
alias = "helium"
}

data "aws_ecr_authorization_token" "this" {}

provider "docker" {
registry_auth {
address = data.aws_ecr_authorization_token.this.proxy_endpoint
username = data.aws_ecr_authorization_token.this.user_name
password = data.aws_ecr_authorization_token.this.password
}
}

data "terraform_remote_state" "core" {
backend = "s3"

Expand Down
4 changes: 3 additions & 1 deletion infrastructure/production/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ terraform {
aws = {
source = "hashicorp/aws"
}
docker = {
source = "kreuzwerker/docker"
}
}
required_version = ">= 0.13"
}

0 comments on commit 1fc6611

Please sign in to comment.