-
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
efs: cant set allow_anonymous_access #30929
Comments
It should work. class DummyStack(Stack):
def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None:
super().__init__(scope, construct_id, **kwargs)
vpc = ec2.Vpc.from_lookup(self, 'Vpc', is_default=True)
efs.FileSystem(
self,
id="test_efs",
file_system_name="test_efs",
vpc=vpc,
lifecycle_policy=efs.LifecyclePolicy.AFTER_90_DAYS,
removal_policy=RemovalPolicy.DESTROY,
allow_anonymous_access=True
) cdk diff
% cdk --version Can you try again with a new directory and make sure the cdk version is up to date? |
New folder created but still have the same problem:
requirements.txt:
% cdk --version tried with python 3.10 and 3.12 |
Maybe this helps? % npm --version |
Make sure you have activated the $ source .venv/bin/activate
$ pip install -r requirements.txt
$ cdk diff Let me know if it works for you. |
It wasnt the not activated venv, but another venv in which it was installed... thanks! |
Comments on closed issues and PRs are hard for our team to see. |
Comments on closed issues and PRs are hard for our team to see. If you need help, please open a new issue that references this one. |
Describe the bug
Setting the
allow_anonymous_access
to True like:Throws the error:
TypeError: FileSystem.init() got an unexpected keyword argument 'allow_anonymous_access'
Subprocess exited with error 1
Expected Behavior
It should be possbile to set
allow_anonymous_access
in FileSystem creationCurrent Behavior
Its not possible to set
allow_anonymous_access
Reproduction Steps
Deploy an efs.FileSystem with
allow_anonymous_access
.Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.150.0
Framework Version
No response
Node.js Version
18
OS
WSL2
Language
Python
Language Version
3.12
Other information
No response
The text was updated successfully, but these errors were encountered: