diff --git a/oidc-deploy-roles.yaml b/oidc-deploy-roles.yaml index 0f4b307..b8f1973 100644 --- a/oidc-deploy-roles.yaml +++ b/oidc-deploy-roles.yaml @@ -69,6 +69,12 @@ Resources: - sqs:* - sns:* - ec2:* + # cloudfront:* and ssm:* reconciled from out-of-band drift + # (audit H-16) — needed by SAM deploys that manage CloudFront + # distributions (meal-order-manager) and SSM parameters + # (afterhours / payments / meal-order). Codified 2026-05-29. + - cloudfront:* + - ssm:* Resource: "*" # --------------------------------------------------------------------------- @@ -494,6 +500,33 @@ Resources: Resource: - !Sub arn:aws:iam::${AWS::AccountId}:role/cdk-hnb659fds-* + SeahavenAccountBaselineDeployRole: + Type: AWS::IAM::Role + Properties: + RoleName: githubdeploy-seahaven-account-baseline + AssumeRolePolicyDocument: + Version: "2012-10-17" + Statement: + - Effect: Allow + Principal: + Federated: !Sub arn:aws:iam::${AWS::AccountId}:oidc-provider/token.actions.githubusercontent.com + Action: sts:AssumeRoleWithWebIdentity + Condition: + StringEquals: + token.actions.githubusercontent.com:aud: sts.amazonaws.com + StringLike: + token.actions.githubusercontent.com:sub: !Sub repo:${GitHubOrg}/seahaven-account-baseline:ref:refs/heads/main + Policies: + - PolicyName: cdk-deploy + PolicyDocument: + Version: "2012-10-17" + Statement: + - Effect: Allow + Action: + - sts:AssumeRole + Resource: + - !Sub arn:aws:iam::${AWS::AccountId}:role/cdk-hnb659fds-* + Outputs: SamCfnExecutionRoleArn: Value: !GetAtt SamCfnExecutionRole.Arn @@ -517,3 +550,5 @@ Outputs: Value: !GetAtt ProcurementIngestDeployRole.Arn ApmWoAnalysisDeployRoleArn: Value: !GetAtt ApmWoAnalysisDeployRole.Arn + SeahavenAccountBaselineDeployRoleArn: + Value: !GetAtt SeahavenAccountBaselineDeployRole.Arn