mirror of
https://github.com/Sea-Haven-Industries/seahaven-org-baseline.git
synced 2026-10-07 16:08:55 +00:00
fix(iam): allow seahaven-site HCP roles to read GitHub OIDC provider
Plan refresh needs iam:GetOpenIDConnectProvider for the content-deploy role trust data source (PLAT-91 first-plan AccessDenied).
This commit is contained in:
parent
114b4e9ac1
commit
46bb75166e
1 changed files with 12 additions and 0 deletions
|
|
@ -1448,6 +1448,12 @@ Resources:
|
|||
- iam:ListRoleTags
|
||||
Resource:
|
||||
- !Sub "arn:aws:iam::${AWS::AccountId}:role/tf-managed/githubdeploy-seahaven-site"
|
||||
- Sid: RefreshGithubOidcProvider
|
||||
Effect: Allow
|
||||
Action:
|
||||
- iam:GetOpenIDConnectProvider
|
||||
Resource:
|
||||
- !Sub "arn:aws:iam::${AWS::AccountId}:oidc-provider/token.actions.githubusercontent.com"
|
||||
- Sid: RefreshManagedPolicies
|
||||
Effect: Allow
|
||||
Action:
|
||||
|
|
@ -1507,6 +1513,12 @@ Resources:
|
|||
Resource:
|
||||
- arn:aws:s3:::seahaven-site-prod
|
||||
- arn:aws:s3:::seahaven-site-prod/*
|
||||
- Sid: ReadGithubOidcProvider
|
||||
Effect: Allow
|
||||
Action:
|
||||
- iam:GetOpenIDConnectProvider
|
||||
Resource:
|
||||
- !Sub "arn:aws:iam::${AWS::AccountId}:oidc-provider/token.actions.githubusercontent.com"
|
||||
- Sid: CloudFrontManage
|
||||
Effect: Allow
|
||||
Action:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue