Skip to content

Instantly share code, notes, and snippets.

@theCaptN21
Created February 2, 2023 14:38
Show Gist options
  • Save theCaptN21/29e4404993a39a89471d3834e254ea50 to your computer and use it in GitHub Desktop.
Save theCaptN21/29e4404993a39a89471d3834e254ea50 to your computer and use it in GitHub Desktop.
Jenkins Role
#Jenkins IAM role
resource "aws_iam_role" "jenkins_role" {
name = "jenkins_role"
assume_role_policy = <<EOF
{
"Version": "2012-10-17",
"Statement": [
{
"Action": "sts:AssumeRole",
"Principal": {
"Service": "ec2.amazonaws.com"
},
"Effect": "Allow",
"Sid": ""
}
]
}
EOF
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment