rhythmic-branch-12845
03/13/2024, 7:58 AMBucketWebsiteArgs
for s3.Bucket
(https://www.pulumi.com/registry/packages/aws/api-docs/s3/bucket/).adventurous-butcher-54166
03/13/2024, 10:19 AMconfig.get()
clutter on top of the verbosity. The verbosity is still there the stack ___main___.py
entrypoints stay clean and readable.
See an example:
https://gist.github.com/olafurnielsen/606566cf41673b64360a4e53728a48e1hundreds-gpu-71155
03/13/2024, 3:25 PM*Args
classes can be dicts instead? I've debated doing this, weighing the inelegance against the usefulness of type-oriented toolingadventurous-butcher-54166
03/13/2024, 3:27 PMhundreds-gpu-71155
03/13/2024, 3:33 PMrhythmic-branch-12845
03/14/2024, 1:58 AMwebsite=s3.BucketWebsiteArgs( ... )
at https://www.pulumi.com/docs/clouds/aws/get-started/deploy-changes/, I simply assigned a dictionary to website={ ... }
@adventurous-butcher-54166: is there a typo at https://gist.github.com/olafurnielsen/606566cf41673b64360a4e53728a48e1#file-__main__-py-L3, with stack:
?hundreds-gpu-71155
03/14/2024, 4:03 PMrhythmic-branch-12845
03/14/2024, 11:14 PMhundreds-gpu-71155
03/15/2024, 4:28 PM*Args
classes. Python doesn't have a formal struct concept, but those classes are just acting as data carriers, so they're kinda structishrhythmic-branch-12845
03/21/2024, 10:32 AMroutes
in aws.ec2.RouteTable
, and egress
in aws.ec2.SecurityGroup
. Arrgh..
Edit: sorry, that would be my bad. I didn't do the change correctly and kept the `=`s. I am happy to say that of what I've tried, switching to dictionaries does work!No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by