-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
aws-cdk: cdk ls throws RuntimeError: Configure 'allowAllOutbound' directly on the supplied SecurityGroups. #28170
Comments
Can you share a relevant code snippet? |
Sure, I will share it with you by tomorrow evening IST. Thanks! |
Dockerfile -
Python CDK Code Snippet for Lambda Function -
|
You are not setting |
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
Correct. If I remove it, everything works fine. Even though the default is supposed to be True |
Hi @badaldavda8 |
The following PR adds validation for the case when `allowAllOutbound` and `securityGroups` are specified at the same time in `FunctionOptions`. #26528 (#27157) According to related issues and discussions, this PR causes existing Lambda deployments to fail. However, since this change has already been merged and I think it is the correct change, I did not fix the validation process but added documentation to clarify the behavior. Relates to #28170, #27669 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Describe the bug
We have the gitlab cicd pipeline which runs a docker based out of python-3.8-alpine image.
We perform cdk ls operation and it fails with following error:
On removing allowAllOutbound from my SecurityGroups, it works as expected.
allowAllOutbound with a value of true is supposed to be the default anyway.
Similar Discussion here - #27669
Expected Behavior
Since its default value, it should not be failing anyway on explicitly specifying it.
Current Behavior
Reproduction Steps
Won't be able to share complete code -
Docker image from python 3.8-alpine
Add/Install npm, cdk cli, aws-cdk-lib
Create a Security Group for a lambda function and use allow_all_outboud= True. If will fail
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.110.1
Framework Version
No response
Node.js Version
v18.18.2
OS
Linux Alpine Image
Language
Python
Language Version
Python 3.8.18
Other information
python3 --version
Python 3.8.18
node --version
v18.18.2
aws --version
aws-cli/2.13.5 Python/3.11.6 Linux/5.15.0-1049-aws source/x86_64.alpine.3 prompt/off
cdk --version
2.110.1
npm --version
9.6.6
Note: The issue is seen only when cdk ls is run inside the docker container and not locally.
The text was updated successfully, but these errors were encountered: