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

Property 'EcsTask' does not exist in @aws-cdk/aws-events-targets #2801

Closed
sohailalam2 opened this issue Jun 9, 2019 · 4 comments
Closed
Labels
bug This issue is a bug.

Comments

@sohailalam2
Copy link

Describe the bug
The current NPM version of the @aws-cdk/aws-events-targets library version 0.33.0 does not include the EcsTask IRuleTarget type.

Although the github repo includes it under the same version number here.

To Reproduce
npm install @aws-cdk/aws-events-targets@0.33.0

const events = require('@aws-cdk/aws-events');
const targets = require('@aws-cdk/aws-events-targets');

// ... 
// ...

    const rule = new events.Rule(this, 'Cron', {
      enabled: true,
      scheduleExpression: 'cron(0 18 ? * MON-FRI *)',
    });

    rule.addTarget(
      new targets.EcsEc2Task({
        cluster,
        taskDefinition,
        taskCount: 1,
        containerOverrides: [
          {
            containerName: 'TheContainer',
            command: ['echo', events.EventField.fromPath('$.detail.event')],
          },
        ],
      })
    );

Expected behavior
It is expected that this EcsTask definition should be exported in the same version.

Version:

  • OS: Windows 10
  • Programming Language: Javascript
  • CDK Version: 0.33.0 (build 50d71bf)
@sohailalam2 sohailalam2 added the bug This issue is a bug. label Jun 9, 2019
@jogold
Copy link
Contributor

jogold commented Jun 10, 2019

@sohailalam2
Copy link
Author

Thanks @jogold ... whats the ETA for v0.34.0? 😄 Can't wait for it :)

@jogold
Copy link
Contributor

jogold commented Jun 10, 2019

See #2791

@sohailalam2
Copy link
Author

Wow awesome 👏 Thanks for the update... closing the ticket.

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

No branches or pull requests

2 participants