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

Removed custom AWS Batch service role from the metaflow-computation #102

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

delagoya
Copy link

@delagoya delagoya commented Nov 8, 2024

Removed custom AWS Batch service role from the metaflow-computation submodule.

Addresses issue #101

@delagoya
Copy link
Author

Any comments on this PR?

Copy link
Contributor

@josephsirak josephsirak left a comment

Choose a reason for hiding this comment

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

Instead of getting rid off the existing role and policy definition can you please use the count = var. custom_batch_service_role_arn != null ? 0 : 1 to conditionally create them and then use moved blocks to move old definitions that don't have count to new definitions that do. Finally, you can use a local value that is set to var. custom_batch_service_role_arn != null ? var.custom_batch_service_role_arn : <existing-role-arn>.

This approach will allow for setting a custom role arn without forcing everyone to set it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants