Skip to content

Commit fc1c5b2

Browse files
authored
Updated docs and set default region for GitLab ci workflow (#19)
1 parent 25fa038 commit fc1c5b2

File tree

4 files changed

+11
-17
lines changed

4 files changed

+11
-17
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ stages:
1818
- >
1919
STS=($(aws sts assume-role-with-web-identity
2020
--role-arn $ROLE_ARN
21+
--region $AWS_REGION
2122
--role-session-name "GitLabRunner-${CI_PROJECT_ID}-${CI_PIPELINE_ID}"
2223
--web-identity-token $CI_JOB_JWT_V2
2324
--duration-seconds 3600

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ This Terraform module enables you to configure GitLab Runners as an AWS IAM OIDC
88
- AWS Account(s) and credentials
99
- GitLab repository
1010
- Terraform >= 1.x
11-
- ...
1211
- Profit?
1312

1413
## Deployment / Usage

exmaples/complete/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
## Requirements
22

3-
No requirements.
3+
| Name | Version |
4+
|------|---------|
5+
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | ~> 1 |
6+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4 |
7+
| <a name="requirement_tls"></a> [tls](#requirement\_tls) | >= 4 |
48

59
## Providers
610

exmaples/remote/README.md

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
## Requirements
22

3-
No requirements.
3+
| Name | Version |
4+
|------|---------|
5+
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | ~> 1 |
6+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4 |
7+
| <a name="requirement_tls"></a> [tls](#requirement\_tls) | >= 4 |
48

59
## Providers
610

@@ -20,21 +24,7 @@ No resources.
2024

2125
| Name | Description | Type | Default | Required |
2226
|------|-------------|------|---------|:--------:|
23-
| <a name="input_attach_admin_policy"></a> [attach\_admin\_policy](#input\_attach\_admin\_policy) | Enable attachment of the AdministratorAccess policy | `bool` | `false` | no |
24-
| <a name="input_attach_read_only_policy"></a> [attach\_read\_only\_policy](#input\_attach\_read\_only\_policy) | Enable attachment of the ReadOnly policy | `bool` | `true` | no |
25-
| <a name="input_create_oidc_provider"></a> [create\_oidc\_provider](#input\_create\_oidc\_provider) | Enable creation of the GitLab OIDC provider | `bool` | `true` | no |
26-
| <a name="input_enabled"></a> [enabled](#input\_enabled) | Enable creation of resources | `bool` | `true` | no |
27-
| <a name="input_force_detach_policies"></a> [force\_detach\_policies](#input\_force\_detach\_policies) | Force detachment of policies attached to the IAM role | `string` | `false` | no |
28-
| <a name="input_gitlab_organisation"></a> [gitlab\_organisation](#input\_gitlab\_organisation) | GitLab organisation name | `string` | `"saidsef"` | no |
29-
| <a name="input_gitlab_repositories"></a> [gitlab\_repositories](#input\_gitlab\_repositories) | List of GitLab repository name(s) and branche names or patterns | <pre>list(object({<br> name = string<br> branches = list(string)<br> }))</pre> | <pre>[<br> {<br> "branches": null,<br> "name": null<br> }<br>]</pre> | no |
30-
| <a name="input_iam_role_name"></a> [iam\_role\_name](#input\_iam\_role\_name) | Name of the IAM role | `string` | `"gitlab-runner"` | no |
31-
| <a name="input_iam_role_path"></a> [iam\_role\_path](#input\_iam\_role\_path) | Path to the IAM role | `string` | `"/"` | no |
32-
| <a name="input_iam_role_permissions_boundary"></a> [iam\_role\_permissions\_boundary](#input\_iam\_role\_permissions\_boundary) | ARN of the permissions boundary to be used by the IAM role | `string` | `""` | no |
33-
| <a name="input_iam_role_policy_arns"></a> [iam\_role\_policy\_arns](#input\_iam\_role\_policy\_arns) | List of IAM policy ARNs to attach to the IAM role | `list(string)` | `[]` | no |
34-
| <a name="input_max_session_duration"></a> [max\_session\_duration](#input\_max\_session\_duration) | Maximum session duration in seconds | `number` | `3600` | no |
3527
| <a name="input_region"></a> [region](#input\_region) | AWS Region name | `string` | `"eu-west-1"` | no |
36-
| <a name="input_tags"></a> [tags](#input\_tags) | Map of tags to be applied to all resources | `map(string)` | `{}` | no |
37-
| <a name="input_url"></a> [url](#input\_url) | URL of identity provider | `string` | `"gitlab.com"` | no |
3828

3929
## Outputs
4030

0 commit comments

Comments
 (0)