Skip to content

Commit 47ebc15

Browse files
Setup ECR Terraform, update GitHub Actions for OIDC
1 parent 6b90767 commit 47ebc15

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,18 @@ jobs:
2121
with:
2222
role-to-assume: arn:aws:iam::011664843975:role/github-permissions
2323
aws-region: ap-south-1
24+
25+
# 2a. Install Terraform
26+
- name: Install Terraform
27+
run: |
28+
sudo apt-get update
29+
sudo apt-get install -y gnupg software-properties-common curl
30+
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
31+
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
32+
sudo apt update
33+
sudo apt install -y terraform
34+
terraform -version
35+
2436
2537
# 3. Terraform Init & Apply (create ECR, RDS, etc.)
2638
- name: Terraform Init & Apply

0 commit comments

Comments
 (0)