From 4804a8a4605275a7874eeb08237f0e23f9d394b3 Mon Sep 17 00:00:00 2001 From: David Wilkie Date: Sat, 14 Sep 2024 15:02:33 +0700 Subject: [PATCH] WIP --- infrastructure/modules/services/docker.tf | 10 -- infrastructure/modules/services/iam.tf | 103 ++++++++++---------- infrastructure/modules/services/versions.tf | 1 - infrastructure/staging/.terraform.lock.hcl | 32 +++--- infrastructure/staging/terraform.tf | 10 ++ infrastructure/staging/versions.tf | 4 +- 6 files changed, 79 insertions(+), 81 deletions(-) diff --git a/infrastructure/modules/services/docker.tf b/infrastructure/modules/services/docker.tf index 41f7d95f9..577ec50cb 100644 --- a/infrastructure/modules/services/docker.tf +++ b/infrastructure/modules/services/docker.tf @@ -1,13 +1,3 @@ -data "aws_ecr_authorization_token" "token" {} - -provider "docker" { - registry_auth { - address = split("/", var.app_image)[0] - username = data.aws_ecr_authorization_token.token.user_name - password = data.aws_ecr_authorization_token.token.password - } -} - resource "docker_image" "this" { name = "${var.app_image}:latest" build { diff --git a/infrastructure/modules/services/iam.tf b/infrastructure/modules/services/iam.tf index 243c382f8..4a8169463 100644 --- a/infrastructure/modules/services/iam.tf +++ b/infrastructure/modules/services/iam.tf @@ -1,20 +1,17 @@ resource "aws_iam_role" "this" { - name = var.identifier - assume_role_policy = <