Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(stepfunctions-tasks): runtime role in EmrAddStep #27736

Merged
merged 16 commits into from
Dec 12, 2023

Conversation

msambol
Copy link
Contributor

@msambol msambol commented Oct 27, 2023

Here is the result of running the step function deployed by the integration test. The step completed successfully with the IAM role.

emr_runtime_role

Closes #27691.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@aws-cdk-automation aws-cdk-automation requested a review from a team October 27, 2023 20:16
@github-actions github-actions bot added feature-request A feature should be added or improved. p2 admired-contributor [Pilot] contributed between 13-24 PRs to the CDK labels Oct 27, 2023
@msambol
Copy link
Contributor Author

msambol commented Oct 27, 2023

@mattliemAWS if you're interested.

@aws-cdk-automation aws-cdk-automation added the pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. label Oct 27, 2023
Copy link
Contributor

@lpizzinidev lpizzinidev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!
The implementation looks good.
Some adjustments are needed on documentation and tests in my opinion.

Copy link
Contributor

@lpizzinidev lpizzinidev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the follow-up.
I think that we should automate as much as possible on the integration test to make it maintainable and re-usable as a reference.
Some smaller adjustments are needed on documentation.

@aws-cdk-automation aws-cdk-automation removed the pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. label Oct 29, 2023
@msambol msambol changed the title feat(stepfunctions-tasks): add support to EmrAddStep for runtime role feat(stepfunctions-tasks): add support for runtime role to EmrAddStep Oct 29, 2023
}
}
}`),
});
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lpizzinidev I added this as well so no prereqs are required. Step function succeeds after deploying stack as-is. Good shout.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍

Copy link
Contributor

@lpizzinidev lpizzinidev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 💪

}
}
}`),
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍

@aws-cdk-automation aws-cdk-automation added the pr/needs-maintainer-review This PR needs a review from a Core Team Member label Oct 30, 2023
@vinayak-kukreja
Copy link
Contributor

Hey @msambol , thank you for this contribution. I am seeing the integ test fails for EmrCreateCluster. I am seeing,

        "StateChangeReason": {
          "Code": "VALIDATION_ERROR",
          "Message": "EMR service role arn:aws:iam::<AccountId>:role/aws-cdk-emr-add-step-runt-EmrCreateClusterServiceRo-xZEbpPmy7it3 is invalid"
        },
Screenshot 2023-12-05 at 3 54 41 PM

Could you confirm if its working on your end once again?

@msambol
Copy link
Contributor Author

msambol commented Dec 6, 2023

Hey @msambol , thank you for this contribution. I am seeing the integ test fails for EmrCreateCluster. I am seeing,

        "StateChangeReason": {
          "Code": "VALIDATION_ERROR",
          "Message": "EMR service role arn:aws:iam::<AccountId>:role/aws-cdk-emr-add-step-runt-EmrCreateClusterServiceRo-xZEbpPmy7it3 is invalid"
        },
Screenshot 2023-12-05 at 3 54 41 PM Could you confirm if its working on your end once again?

Can I see your code?

@aws-cdk-automation
Copy link
Collaborator

This PR has been in the MERGE CONFLICTS state for 3 weeks, and looks abandoned. To keep this PR from being closed, please continue work on it. If not, it will automatically be closed in a week.

@msambol
Copy link
Contributor Author

msambol commented Dec 6, 2023

It was working. I'll take a look this weekend.

@msambol
Copy link
Contributor Author

msambol commented Dec 6, 2023

@vinayak-kukreja I think there is a bug with the EMR create cluster process right now. It won't let me create a cluster with a perfectly-acceptable EMR service role. I'm checking with the EMR team.

@vinayak-kukreja
Copy link
Contributor

Can I see your code?

Hey @msambol , I just deployed the integ test mentioned in this PR. The deployment succeeds but when I run the first command mentioned in steps within the integ test, it fails the create task. Let me know if I can provide any other information.

@msambol
Copy link
Contributor Author

msambol commented Dec 6, 2023

Mine failed as well. Something is off with EMR cluster creation. I reached out to the EMR team.

@vinayak-kukreja
Copy link
Contributor

Ok, thank you. Let me know if you hear anything from them. If not, I can reach out too.

@kaizencc kaizencc changed the title feat(stepfunctions-tasks): add support for runtime role to EmrAddStep feat(stepfunctions-tasks): runtime role in EmrAddStep Dec 7, 2023
@github-actions github-actions bot added the effort/medium Medium work item – several days of effort label Dec 7, 2023
@vinayak-kukreja vinayak-kukreja self-assigned this Dec 7, 2023
@msambol
Copy link
Contributor Author

msambol commented Dec 11, 2023

@vinayak-kukreja I addressed the cluster creation issues in #28327. Once that's merged, I'll rebase and make sure this integration test succeeds.

@paulhcsun
Copy link
Contributor

Hi @msambol, your fix for ecr cluster creation #28327 has been approved and merged.

@msambol
Copy link
Contributor Author

msambol commented Dec 11, 2023

@paulhcsun Rebasing now and re-running integ test 👍🏼

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: e3c70a7
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@msambol
Copy link
Contributor Author

msambol commented Dec 12, 2023

@paulhcsun This has been updated and confirmed working.

Copy link
Contributor

@paulhcsun paulhcsun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for updating and confirming the tests are working. Great work and thanks for the contribution @msambol!

Copy link
Contributor

mergify bot commented Dec 12, 2023

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit 314fbfa into aws:main Dec 12, 2023
10 checks passed
@aws-cdk-automation aws-cdk-automation removed the pr/needs-maintainer-review This PR needs a review from a Core Team Member label Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
admired-contributor [Pilot] contributed between 13-24 PRs to the CDK effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

aws-stepfunctions-tasks: Add support for ExecutionRoleArn to EmrAddStep
5 participants