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

Use the SDK V3 Style #794

Merged
merged 3 commits into from
Aug 18, 2023
Merged

Use the SDK V3 Style #794

merged 3 commits into from
Aug 18, 2023

Conversation

davidsiaw
Copy link
Contributor

The new node version uses SDK V3. This comes with a new import method.

@@ -1,11 +1,12 @@
var AWS = require('aws-sdk');
import { ECSClient, RunTaskCommand } from "@aws-sdk/client-ecs";

var util = require('util');

exports.handler = function(input, context) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
exports.handler = function(input, context) {
exports.handler = async function(input, context) {

Since there's an await down below, we'll need this to be async.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nice catch. Thanks

@degikko
Copy link

degikko commented Aug 18, 2023

@essa can you help us review this PR, please?

@degikko degikko requested a review from essa August 18, 2023 02:22
barcelona.yml Outdated
# 10AM JST every week day
- schedule: cron(0 1 ? * MON-FRI *)
command: bin/chaos
scheduled_tasks: []
Copy link
Contributor

Choose a reason for hiding this comment

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

You are removing all scheduled task now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, sorry let me remove that

Copy link
Contributor

@essa essa left a comment

Choose a reason for hiding this comment

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

@davidsiaw
LGTM if you are removing scheduled tasks

@davidsiaw davidsiaw merged commit eab91fe into master Aug 18, 2023
6 checks passed
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.

4 participants