Skip to content

Commit 2968b00

Browse files
committed
chore[deploy]: 권한 변경
1 parent 4e6f993 commit 2968b00

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/CI-CD_Pipeline.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ jobs:
218218
aws-region: ${{ secrets.AWS_REGION }}
219219
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
220220
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
221-
instance-ids: "i-094fd5f8988b7330b"
221+
instance-ids: "i-084a4704f4e017cc4"
222222
working-directory: /
223223
comment: Deploy
224224
command: |

infra/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ resource "aws_iam_role_policy_attachment" "s3_full_access" {
171171
# EC2 역할에 AmazonEC2RoleforSSM 정책을 부착
172172
resource "aws_iam_role_policy_attachment" "ec2_ssm" {
173173
role = aws_iam_role.ec2_role_1.name
174-
policy_arn = "arn:aws:iam::aws:policy/service-role/AmazonEC2RoleforSSM"
174+
policy_arn = "arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore"
175175
}
176176

177177
# IAM 인스턴스 프로파일 생성

0 commit comments

Comments
 (0)