diff --git a/ci/template.yml b/ci/template.yml index 296cb2600..bd5c6d619 100644 --- a/ci/template.yml +++ b/ci/template.yml @@ -328,11 +328,6 @@ Resources: Handler: index.handler MemorySize: 192 Policies: - - Statement: - - Action: events:PutEvents - Effect: Allow - Resource: !Sub arn:${AWS::Partition}:events:${AWS::Region}:${AWS::AccountId}:event-bus/default - Version: "2012-10-17" - Statement: - Action: ssm:PutParameter Effect: Allow @@ -412,9 +407,9 @@ Resources: MemorySize: 128 Policies: - Statement: - - Action: sns:Publish + - Action: events:PutEvents Effect: Allow - Resource: !Ref SlackMessageRelaySnsTopicArn + Resource: !Sub arn:${AWS::Partition}:events:${AWS::Region}:${AWS::AccountId}:event-bus/default Version: "2012-10-17" Runtime: nodejs20.x Tags: