mirror of
https://github.com/Sea-Haven-Industries/seahaven-org-baseline.git
synced 2026-10-07 05:41:59 +00:00
fix(ci): let the runner roles read the EKS AL2023 AMI parameter (#187)
Some checks are pending
Deploy / deploy-management (push) Waiting to run
Deploy / deploy-external-dev (push) Waiting to run
Deploy / deploy-security (push) Waiting to run
Deploy / deploy-dev (push) Waiting to run
Deploy / deploy-prod (push) Waiting to run
Deploy / deploy-ci (push) Waiting to run
Some checks are pending
Deploy / deploy-management (push) Waiting to run
Deploy / deploy-external-dev (push) Waiting to run
Deploy / deploy-security (push) Waiting to run
Deploy / deploy-dev (push) Waiting to run
Deploy / deploy-prod (push) Waiting to run
Deploy / deploy-ci (push) Waiting to run
The managed node group plan reads the public recommended AMI version. That parameter was outside the existing SSM grant.
This commit is contained in:
parent
e8e60dbad6
commit
6a251d49e1
1 changed files with 10 additions and 1 deletions
|
|
@ -304,6 +304,12 @@ function servicesPolicy(): object {
|
|||
],
|
||||
Resource: `arn:aws:ssm:us-east-1:${ACCOUNT}:parameter/${prefix}/*`,
|
||||
},
|
||||
{
|
||||
Sid: "EksAmiRead",
|
||||
Effect: "Allow",
|
||||
Action: ["ssm:GetParameter", "ssm:GetParameters"],
|
||||
Resource: "arn:aws:ssm:us-east-1::parameter/aws/service/eks/optimized-ami/1.34/amazon-linux-2023/x86_64/standard/recommended/*",
|
||||
},
|
||||
{
|
||||
Sid: "SsmList",
|
||||
Effect: "Allow",
|
||||
|
|
@ -533,7 +539,10 @@ function planPolicy(hcpArn: string, githubArn: string): object {
|
|||
Sid: "SsmReads",
|
||||
Effect: "Allow",
|
||||
Action: ["ssm:GetParameter", "ssm:GetParameters", "ssm:ListTagsForResource"],
|
||||
Resource: `arn:aws:ssm:us-east-1:${ACCOUNT}:parameter/actions-runner/*`,
|
||||
Resource: [
|
||||
`arn:aws:ssm:us-east-1:${ACCOUNT}:parameter/actions-runner/*`,
|
||||
"arn:aws:ssm:us-east-1::parameter/aws/service/eks/optimized-ami/1.34/amazon-linux-2023/x86_64/standard/recommended/*",
|
||||
],
|
||||
},
|
||||
],
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue