are there examples anywhere for aws-native ? I'm l...
# aws
s
are there examples anywhere for aws-native ? I'm looking at https://github.com/pulumi/pulumi-aws-native/ but there's only a few. I'm looking for a bucket with event notification to sns topic, in yaml.
s
You might try using Pulumi AI (https://www.pulumi.com/ai). It’s not perfect, but it should provide enough scaffolding around what you’re trying to do to be helpful and get you started.
Here’s some YAML I generated using Pulumi AI (note: I haven’t tested this yet):
Copy code
# Revised example with AWS Native provider

resources:
- name: my-bucket
  type: aws-native:s3ucket:Bucket
  args:
    acl: "private"
    bucket: "my-native-bucket"
- name: my-topic
  type: aws-native:sns:topic:Topic
  args:
    name: "MyNativeTopic"
- name: my-bucket-notification
  type: aws-native:s3/bucketNotification:BucketNotification
  args:
    bucket: "my-native-bucket"
    topicConfigurations:
    - id: my-topic-configuration
      topicArn: $my-topic.arn
      events:
      - 's3:ObjectCreated:*'
s
Hi Scott, Thanks for the suggestion, I've tried your yaml and run a few prompts in the pulumi AI but does not seem to even generate valid yaml, get lots of basic structure errors when doing pulumi up, also insists in setting runtime as python instead of yaml. Do you know any other place where I could find a working example for simple scenarios like bucket notification to sns, lambda, etc ?
s
Unfortunately, I don’t know of other places to find examples off the top of my head. I apologize. However, it would be great if you could create an issue to this effect in the pulumi/pulumi-aws-native repository on GitHub (https://github.com/pulumi/pulumi-aws-native). I know this doesn’t solve your problem, but creating an issue will help get the attention of our engineering team. In the meantime, I’ll keep looking around for more example sources, and share them here if I can find them.