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

Lambda functions in stacksets #149

Open
delenamalan opened this issue Jun 14, 2023 · 1 comment
Open

Lambda functions in stacksets #149

delenamalan opened this issue Jun 14, 2023 · 1 comment

Comments

@delenamalan
Copy link

Is there a way to deploy a Lambda function in a StackSet using cdk-stacksets?

I've tried using both aws_lambda.Code.from_inline and aws_lambda.Code.from_asset to create a Lambda function:

        func = aws_lambda.Function(
            scope,
            "MyFunction",
            function_name="my_function",
            ...
            code=aws_lambda.Code.from_inline(lambda_code),
       )

But I'm getting this error:

RuntimeError: StackSets cannot use Assets

Is there any way around it using CDK? Or do I first need to upload the Lambda function to an S3 bucket?

@corymhall
Copy link
Contributor

What version are you on? Asset support was added in v0.0.120

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

No branches or pull requests

2 participants