https://pulumi.com logo
Title
a

alert-raincoat-81485

04/05/2022, 1:32 AM
Hello team. I am trying to follow the example where i want to use
args[FilsSystemArgs]
but it seems not valid. Can someone guide me over? https://www.pulumi.com/registry/packages/aws/api-docs/efs/filesystem/
foo = aws.efs.FileSystem(
    "efs_filesystem", 
    resource_name="efs",
    args=[aws.efs.FileSystemArgs()]
})
b

breezy-painter-29573

04/05/2022, 1:47 AM
I do believe it should be
args=aws.efs.FileSystemArgs()
. Maybe you were confused by square brackets from docs in
Optional[FileSystemArgs]
but they just denotes the type of the argument for the optional argument.
đź‘‹ 1
Also you are using “efs_filesystem” for the first positions parameter
resource_name
and then use it again as a named parameter
delete the first one or the second one
a

alert-raincoat-81485

04/05/2022, 6:12 AM
@breezy-painter-29573 I have tried the code you showed me, nbut that didn’t work for me earlier.
@billowy-army-68599 Can you please give an idea?
b

billowy-army-68599

04/05/2022, 5:57 PM
I'm always happy to help where I can, but please remember this is community support
what error are you getting
a

alert-raincoat-81485

04/05/2022, 6:03 PM
I understand
b

billowy-army-68599

04/05/2022, 6:03 PM
could you give more information? wht error are you getting?
a

alert-raincoat-81485

04/05/2022, 6:03 PM
foo = aws.efs.FileSystem(
    "efs_filesystem", 
    resource_name="efs",
    args=[aws.efs.FileSystemArgs()]
})
When i try to put
args=[aws.efs.FileSystemArgs()]
that format doesn’t work with it.
I am trying to put these parameters in efs api
b

billowy-army-68599

04/05/2022, 6:04 PM
why are you making it an array?
shouldn't it be:
foo = aws.efs.FileSystem(
    "efs_filesystem", 
    resource_name="efs",
    args=aws.efs.FileSystemArgs()
})
a

alert-raincoat-81485

04/05/2022, 6:04 PM
It didn’t either work without an array
b

billowy-army-68599

04/05/2022, 6:05 PM
what do you mean "it didn't work" ? can you elaborate on what that means?
a

alert-raincoat-81485

04/05/2022, 6:05 PM
When i am trying to add the function, that doesn’t even list out.
FileSystemArgs()
doesn’t pop up.
b

billowy-army-68599

04/05/2022, 6:07 PM
that appears to be an issue for your autocompletion, it works fine for me
a

alert-raincoat-81485

04/05/2022, 6:16 PM
I see, let me check
b

billowy-army-68599

04/05/2022, 6:17 PM
update your global
pulumi_aws
to the latest version