Skip to content

Commit

Permalink
Update Main.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
Aakibgithuber authored Jan 30, 2024
1 parent 0b3dcb3 commit ac564e8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Jenkins-terraform/Main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ resource "aws_iam_instance_profile" "example_profile" {
role = aws_iam_role.example_role.name
}


resource "aws_security_group" "Jenkins-sg" {
name = "Jenkins-Security Group"
description = "Open 22,443,80,8080,9000"
Expand Down Expand Up @@ -59,15 +58,15 @@ resource "aws_security_group" "Jenkins-sg" {
}

resource "aws_instance" "web" {
ami = "ami-0df4b2961410d4cff"
ami = "ami-0c7217cdde317cfec"
instance_type = "t2.medium"
key_name = "purplehaze"
key_name = "my key"
vpc_security_group_ids = [aws_security_group.Jenkins-sg.id]
user_data = templatefile("./install_jenkins.sh", {})
iam_instance_profile = aws_iam_instance_profile.example_profile.name

tags = {
Name = "Jenkins-argo"
Name = "Jenkins Server"
}

root_block_device {
Expand Down

0 comments on commit ac564e8

Please sign in to comment.