Skip to content

Commit cbc8906

Browse files
Merge pull request #2 from infraspecdev/example/simple-setup
Example/simple setup
2 parents f038f7f + a0da068 commit cbc8906

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

examples/simple-setup/main.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module "github_actions_iam_role" {
2+
source = "github.com/infraspecdev/terraform-aws-github-actions-iam-role?ref=main"
3+
aws_account_id = var.aws_account_id
4+
github_username = var.github_username
5+
repository_names = var.repository_names
6+
role_name = var.role_name
7+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
aws_account_id = "ACCOUNT_ID"
2+
github_username = "GITHUB_USERNAME"
3+
repository_names = "["REPO_NAME_1","REPO_NAME_1"]"

examples/simple-setup/variables.tf

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
variable "aws_account_id" {
2+
description = "The AWS Account ID"
3+
type = string
4+
}
5+
6+
variable "github_username" {
7+
description = "GitHub Username"
8+
type = string
9+
}
10+
11+
variable "repository_names" {
12+
description = "List of names of the GitHub repository that will be allowed to assume the role."
13+
type = list(string)
14+
}
15+
16+
variable "role_name" {
17+
description = "Name of the IAM Role"
18+
type = string
19+
default = "GitHubActionsRole"
20+
}

0 commit comments

Comments
 (0)