diff --git a/.github/workflows/CI-CD_Pipeline.yml b/.github/workflows/CI-CD_Pipeline.yml index 5a9b270e..42dd1932 100644 --- a/.github/workflows/CI-CD_Pipeline.yml +++ b/.github/workflows/CI-CD_Pipeline.yml @@ -201,7 +201,7 @@ jobs: aws-region: ${{ secrets.AWS_REGION }} aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - instance-ids: "i-01484dd44e3bf7bea" + instance-ids: "i-0f910c00568bbca61" working-directory: / comment: Deploy command: | diff --git a/infra/main.tf b/infra/main.tf index 110fceff..7cb78428 100644 --- a/infra/main.tf +++ b/infra/main.tf @@ -418,18 +418,18 @@ ${local.ec2_user_data_base} EOF } -# Elastic IP 생성 -resource "aws_eip" "eip_1" { - domain = "vpc" - - tags = { - Name = "${var.prefix}-eip-1" - } - -} - -# Elastic IP와 EC2 인스턴스 연결 -resource "aws_eip_association" "eip_assoc" { - instance_id = aws_instance.ec2_1.id - allocation_id = aws_eip.eip_1.id -} \ No newline at end of file +# # Elastic IP 생성 +# resource "aws_eip" "eip_1" { +# domain = "vpc" +# +# tags = { +# Name = "${var.prefix}-eip-1" +# } +# +# } +# +# # Elastic IP와 EC2 인스턴스 연결 +# resource "aws_eip_association" "eip_assoc" { +# instance_id = aws_instance.ec2_1.id +# allocation_id = aws_eip.eip_1.id +# } \ No newline at end of file