Skip to content

Commit

Permalink
add feedback from Luca
Browse files Browse the repository at this point in the history
  • Loading branch information
msambol committed Jan 9, 2024
1 parent ee67f9e commit 885f0c9
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ new cdk.CfnOutput(stack, 'stateMachineArn', {
value: sm.stateMachineArn,
});

new IntegTest(app, 'EmrCreateClusterTest', {
new IntegTest(app, 'SfnTasksEcsEc2RunTaskTest', {
testCases: [stack],
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ new sfn.StateMachine(stack, 'StateMachine', {
definition,
});

new IntegTest(app, 'EmrCreateClusterTest', {
new IntegTest(app, 'SfnTasksEcsEc2TaskTest', {
testCases: [stack],
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ new cdk.CfnOutput(stack, 'stateMachineArn', {
value: sm.stateMachineArn,
});

new IntegTest(app, 'EmrCreateClusterTest', {
new IntegTest(app, 'SfnTasksEcsFargateRunTaskTest', {
testCases: [stack],
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ new sfn.StateMachine(stack, 'StateMachine', {
definition,
});

new IntegTest(app, 'EmrCreateClusterTest', {
new IntegTest(app, 'SfnTasksEcsFargateTaskTest', {
testCases: [stack],
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -337,12 +337,13 @@ export class EcsRunTask extends sfn.TaskStateBase implements ec2.IConnectable {
const stack = cdk.Stack.of(this);

// https://docs.aws.amazon.com/step-functions/latest/dg/ecs-iam.html
const taskDefinitionFamilyArn = this.getTaskDefinitionFamilyArn();
const policyStatements = [
new iam.PolicyStatement({
actions: ['ecs:RunTask'],
resources: [
this.getTaskDefinitionFamilyArn(),
`${this.getTaskDefinitionFamilyArn()}:*`,
taskDefinitionFamilyArn,
`${taskDefinitionFamilyArn}:*`,
],
}),
new iam.PolicyStatement({
Expand Down

0 comments on commit 885f0c9

Please sign in to comment.