From 10cde2adb7b64f5ca12d7d65fb418d95d880146c Mon Sep 17 00:00:00 2001 From: Hussen Date: Fri, 17 Jul 2026 00:29:54 +0530 Subject: [PATCH] fix: allow CodeDeploy revision registration --- infrastructure/nested/github-oidc.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/infrastructure/nested/github-oidc.yaml b/infrastructure/nested/github-oidc.yaml index c278fa2..cecd222 100644 --- a/infrastructure/nested/github-oidc.yaml +++ b/infrastructure/nested/github-oidc.yaml @@ -198,6 +198,13 @@ Resources: Action: - codedeploy:GetDeploymentConfig Resource: !Sub "arn:${AWS::Partition}:codedeploy:${AWS::Region}:${AWS::AccountId}:deploymentconfig:*" + - Effect: Allow + Action: + - codedeploy:RegisterApplicationRevision + Resource: !Sub + - "arn:${AWS::Partition}:codedeploy:${AWS::Region}:${AWS::AccountId}:application:${Project}-${Stage}-*" + - Project: !Ref ProjectName + Stage: !Ref Environment Tags: - Key: Project Value: coditude