From 42b17f2a8bdb7f8af76df9f8042a83c1377676cd Mon Sep 17 00:00:00 2001 From: Adnan Hassan Date: Thu, 24 Oct 2024 17:43:47 +0100 Subject: [PATCH] adjust policies --- iac/main/resources/state-machine.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/iac/main/resources/state-machine.yml b/iac/main/resources/state-machine.yml index a60c284d0..f95c1ca1f 100644 --- a/iac/main/resources/state-machine.yml +++ b/iac/main/resources/state-machine.yml @@ -937,7 +937,7 @@ HypercareAdjustedScheduleEventBridgeRule: HypercareAdjustedScheduleEventBridgeStateMachineInvokeRole: Type: AWS::IAM::Role Properties: - RoleName: 'HypercareAdjustedScheduleEventBridgeStateMachineInvokeRole' + RoleName: !Sub ${Environment}-dap-hypercare-eventbridge-role AssumeRolePolicyDocument: Version: '2012-10-17' Statement: @@ -945,11 +945,11 @@ HypercareAdjustedScheduleEventBridgeStateMachineInvokeRole: Principal: Service: 'events.amazonaws.com' Action: 'sts:AssumeRole' - Policies: - - PolicyName: !Sub ${Environment}-dap-hyperbridge-rule-role - PolicyDocument: - Version: '2012-10-17' - Statement: - - Effect: 'Allow' - Action: 'states:StartExecution' - Resource: !Ref TxmaRawLayerConsolidatedSchemaProcessingStateMachine + Policies: + - PolicyName: !Sub ${Environment}-dap-hyperbridge-rule-role + PolicyDocument: + Version: '2012-10-17' + Statement: + - Effect: 'Allow' + Action: 'states:StartExecution' + Resource: !Ref TxmaRawLayerConsolidatedSchemaProcessingStateMachine