You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+65-27Lines changed: 65 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,25 +1,50 @@
1
-
# Module Blueprint
1
+
# AWS GitLab OIDC Provider Terraform Module
2
2
3
-
Terraform module blueprint
3
+
This module allows you to create a GitHub OIDC provider and the associated IAM roles, that will help Github Actions to securely authenticate against the AWS API using an IAM role.
4
+
5
+
We recommend using GitHub's OIDC provider to get short-lived credentials needed for your actions. Specifying role-to-assume without providing an aws-access-key-id or a web-identity-token-file will signal to the action that you wish to use the OIDC provider. The default session duration is 1 hour when using the OIDC provider to directly assume an IAM Role. The default session duration is 6 hours when using an IAM User to assume an IAM Role (by providing an aws-access-key-id, aws-secret-access-key, and a role-to-assume) . If you would like to adjust this you can pass a duration to role-duration-seconds, but the duration cannot exceed the maximum that was defined when the IAM Role was created. The default session name is GitHubActions, and you can modify it by specifying the desired name in role-session-name.
6
+
7
+
## Use-Cases
8
+
9
+
1. Retrieve temporary credentials from AWS to access cloud services
10
+
1. Use credentials to retrieve secrets or deploy to an environment
11
+
1. Scope role to branch or project
12
+
1. Create an AWS OIDC provider for GitHub Actions
13
+
14
+
## Features
15
+
16
+
2. Create one or more IAM role that can be assumed by GitHub Actions
IMPORTANT: The master branch is used in source just as an example. In your code, do not pin to master because there may be breaking changes between releases. Instead pin to the release tag (e.g. ?ref=tags/x.y.z) of one of our [latest releases](https://github.com/terraform-module/terraform-module-blueprint/releases).
57
+
IMPORTANT: The master branch is used in source just as an example. In your code, do not pin to master because there may be breaking changes between releases. Instead pin to the release tag (e.g. ?ref=tags/x.y.z) of one of our [latest releases](https://github.com/terraform-module/terraform-aws-gitlab-oidc-provider/releases).
Currently maintained by [Ivan Katliarchuk](https://github.com/ivankatliarchuk) and these [awesome contributors](https://github.com/terraform-module/terraform-module-blueprint/graphs/contributors).
135
+
Currently maintained by [Ivan Katliarchuk](https://github.com/ivankatliarchuk) and these [awesome contributors](https://github.com/terraform-module/terraform-aws-gitlab-oidc-provider/graphs/contributors).
* This module allows you to create a Gitlab OIDC provider for your AWS account, that will help Gitlab Actions to securely authenticate against the AWS API using an IAM role
error_message="Maximum session duration must be between 3600 and 43200 seconds."
61
+
}
62
+
}
63
+
64
+
variable"oidc_role_attach_policies" {
65
+
description="Attach policies to OIDC role."
66
+
type=list(string)
67
+
default=[]
68
+
}
69
+
70
+
variable"match_field" {
71
+
type=string
72
+
default="sub"
73
+
}
74
+
75
+
variable"gitlab_url" {
76
+
type=string
77
+
default="https://gitlab.com"
78
+
}
79
+
80
+
variable"aud_value" {
81
+
description="(Required) A list of client IDs (also known as audiences). When a mobile or web app registers with an OpenID Connect provider, they establish a value that identifies the application. (This is the value that's sent as the client_id parameter on OAuth requests.)"
0 commit comments