Skip to content

Commit 248b198

Browse files
Merge pull request #6 from infraspecdev/oidc-connect-resource
OIDC connect resource
2 parents 9495c41 + 975e43f commit 248b198

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ No modules.
2020

2121
| Name | Type |
2222
|------|------|
23+
| [aws_iam_openid_connect_provider.github_oidc_connect](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_openid_connect_provider) | resource |
2324
| [aws_iam_role.github_actions_role](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role) | resource |
2425
| [aws_iam_role_policy_attachment.attach_admin_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) | resource |
2526
| [aws_iam_policy_document.assume_role_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |

examples/simple-setup/.terraform.lock.hcl

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

main.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
resource "aws_iam_openid_connect_provider" "github_oidc_connect" {
2+
url = "https://token.actions.githubusercontent.com"
3+
4+
client_id_list = [
5+
"sts.amazonaws.com",
6+
]
7+
thumbprint_list = [
8+
"6938fd4d98bab03faadb97b34396831e3780aea1"
9+
]
10+
}
111
resource "aws_iam_role" "github_actions_role" {
212
name = var.role_name
313
assume_role_policy = data.aws_iam_policy_document.assume_role_policy.json

0 commit comments

Comments
 (0)