Skip to content

Commit

Permalink
actions: ecr connection
Browse files Browse the repository at this point in the history
  • Loading branch information
PedroJorge148 committed Sep 19, 2024
1 parent 402f97d commit 9ebf7bf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ jobs:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: 'arn:aws:iam::327649228912:role/ecr-role'
aws-region: us-east-2
role-to-assume: arn:aws:iam::327649228912:role/ecr-role
aws-region: us-east-1

- name: Login to AWS ECR
id: login-erc
Expand Down
2 changes: 2 additions & 0 deletions infra/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,6 @@ resource "aws_iam_role" "ecr-role" {
tags = {
Iac = "True"
}

depends_on = [ aws_iam_openid_connect_provider.oidc-git ]
}
1 change: 1 addition & 0 deletions infra/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ terraform {
}

provider "aws" {
region = "us-east-1"
profile = "pj-aws-sso"
}

0 comments on commit 9ebf7bf

Please sign in to comment.