-
Notifications
You must be signed in to change notification settings - Fork 4k
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
[stepfunctions-tasks] Broken example code #10729
Comments
The following code allows to create a StepFunction task run_task = sf_task.EcsRunTask(self, "RunFargate",
integration_pattern=sfn.IntegrationPattern.RUN_JOB,
cluster=cluster,
task_definition=task_def,
**assign_public_ip=True,**
.....) However, the question remains, why docs provide a broken solution. |
thanks for reporting @kafka399 - I'll update the example (or happy to accept a PR if you want to open one!) |
The example code for running a job from a task definition on Fargate requires public IP address assignment. Closes #10729 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
❓ General Issue
https://docs.aws.amazon.com/cdk/api/latest/python/aws_cdk.aws_stepfunctions_tasks.README.html
The Question
According the official AWS documentation, the following code should work:
However, I'm getting the following error:
jsii.errors.JSIIError: There are no 'Private' subnet groups in this VPC. Available types: Public
I can add the following, but it just pushing the problem into StepFunction task, where subnets are created empty:
subnets=ec2.SubnetSelection(subnets=vpc.private_subnets)
Can you update the documentation with working code?
Environment
Other information
The text was updated successfully, but these errors were encountered: