-
-
Notifications
You must be signed in to change notification settings - Fork 86
Can't deploy step functions with ECS integration #11
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
Comments
HI, Your code looks good. I see there were some similar issues reported before:
One of the potential solutions can be to wait for the IAM role creation. Ideally, Terraform AWS provider should do this. |
I was able to make that working with the following snippet:
It feels that this could be something we could add to this awesome module, so the consumer doesn't need to compose this by themselves as it looks like a static-ish value. This allowed me to create a step functions state machine, but I now get failures during execution.
I've looked into |
Good that the first part works for you. We need to change
A similar change has to be done for Also add Will you be able to make it? I am reading the official doc and I don't see a mention of I am not sure whether we should add it somewhere? Or just describe this case via custom policy? What do you think? |
I can certainly do a pull request this week, which will enhance this. Regarding the
|
One option is like you say but I think it is rather common case and worth adding to the module as another item in service_integrations = {
ecs_Sync = {
ecs = [module.data_transform.crawler_trigger_task_definition_arn]
events = true # <= `true` means that value from `default_resources` will be used
}
iam = {
iam_PassRole = [module.data_transform.crawler_trigger_task_execution_role_arn]
}
} Please make the required changes in a PR. |
Hey, I was gonna create an issue for the very same matter. The PR #19 was initially adding the same default. Why has it been pushed out? Based on AWS docs, the resource never changes there. It could easily be part of the default. What do you guys think? |
I would add the default_resources = ["arn:aws:events:${local.aws_region}:${data.aws_caller_identity.current.account_id}:rule/StepFunctionsGetEventsForECSTaskRule"] for ECS. Maybe the caller identity could be added to I have created a #24 for adding I'm also running another SF from the parent SF and it would need default_resources = ["arn:aws:events:${local.aws_region}:${data.aws_caller_identity.current.account_id}:rule/StepFunctionsGetEventsForStepFunctionsExecutionRule"] but the logic is the same. This doesn't need |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
I'm trying to deploy step functions with
arn:aws:states:::ecs:runTask.sync
Task.However for some reason I can't deploy it. This is the error code:
My service_integration block
:My feeling is, that the above block is wrong, but there's no clear example.
The lambda stuff works correctly, the ecs task is my next iteration.
The text was updated successfully, but these errors were encountered: