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

Construct ScheduledFargateTask lacks access to IGrantable #3371

Closed
1 of 5 tasks
Pwntus opened this issue Jul 21, 2019 · 2 comments
Closed
1 of 5 tasks

Construct ScheduledFargateTask lacks access to IGrantable #3371

Pwntus opened this issue Jul 21, 2019 · 2 comments
Assignees
Labels
@aws-cdk/aws-ecs-patterns Related to ecs-patterns library needs-triage This issue or PR still needs to be triaged.

Comments

@Pwntus
Copy link

Pwntus commented Jul 21, 2019

  • I'm submitting a ...

    • πŸͺ² bug report
    • πŸš€ feature request
    • πŸ“š construct library gap
    • ☎️ security issue or vulnerability => Please see policy
    • ❓ support request => Please see note at the top of this template.
  • What is the current behavior?

const table = new dynamodb.Table( ... );
const task = new ScheduledFargateTask( ... );

// IGrantable not present on any accessible properties
table.grantReadWriteData(task);
const table = new dynamodb.Table( ... );
const task = new ScheduledFargateTask( ... );

// Works, if suggested fix is implemented
table.grantReadWriteData(task.taskDefinition.taskRole);
  • What is the motivation / use case for changing the behavior or adding this feature?
    Run containers on ECS Fargate which can interact with the AWS API using IAM policies.

  • Please tell us about your environment:

    • CDK CLI Version: 1.1.0 (build 1a11e96)
    • OS: Ubuntu
    • Language: TypeScript
@Pwntus Pwntus added the needs-triage This issue or PR still needs to be triaged. label Jul 21, 2019
@SoManyHs SoManyHs added the @aws-cdk/aws-ecs-patterns Related to ecs-patterns library label Aug 19, 2019
@piradeepk
Copy link
Contributor

Resolved as part of #3404

@prabhash-c
Copy link

Hopefully you will be able to help me with this

@Pwntus does this work for you?

@piradeepk this still gives me the same error, no IGrantable on ScheduledFargateTask

Did the format change or something?

Thanks for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-ecs-patterns Related to ecs-patterns library needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

4 participants