Skip to content

Commit

Permalink
grouped data sources together
Browse files Browse the repository at this point in the history
  • Loading branch information
aahel committed Sep 18, 2023
1 parent 06b5288 commit 2b46d3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/lambda-registrator/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ locals {

# Equivalent of aws ecr get-login
data "aws_ecr_authorization_token" "ecr_auth" {}

data "aws_region" "current_region" {}
data "aws_caller_identity" "current_identity" {}

provider "docker" {
host = var.docker_host
Expand All @@ -38,8 +39,7 @@ provider "docker" {
address = "${data.aws_caller_identity.current_identity.account_id}.dkr.ecr.${data.aws_region.current_region.name}.amazonaws.com"
}
}
data "aws_region" "current_region" {}
data "aws_caller_identity" "current_identity" {}

resource "aws_iam_role" "registration" {
name = var.name

Expand Down

0 comments on commit 2b46d3a

Please sign in to comment.