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

Api: Call function.currentVersion to work around CDK issue #1020

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

junaway
Copy link
Contributor

@junaway junaway commented Nov 9, 2021

Fixes #1001.

@thdxr thdxr added bug Something isn't working and removed bug Something isn't working labels Nov 9, 2021
@junaway junaway added bug Something isn't working Status: In Progress labels Nov 9, 2021
@junaway junaway self-assigned this Nov 9, 2021

// Fixes CDK issue with Provisioned Concurrency and Lambda Versions
// cf. https://github.com/aws/aws-cdk/issues/13731#issuecomment-814801449
this.currentVersion;
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't think we should always calling this.currentVersion. @thdxr can you confirm on this?

@@ -339,6 +339,23 @@ test("timeout-class", async () => {
);
});

test("provisioned-concurrency", async () => {
const stack = new Stack(new App(), "stack");
const foo = new Function(stack, "Function", {
Copy link
Contributor

Choose a reason for hiding this comment

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

foo never used

})
);
});

Copy link
Contributor

Choose a reason for hiding this comment

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

Let's also test AWS::Lambda::Version not created if concurrency is not configured.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

Call function.currentVersion to work around CDK issue
4 participants