Skip to content

Instantly share code, notes, and snippets.

@tusharshahrs
tusharshahrs / A. Component Resource.md
Last active March 9, 2021 17:25
Import Using Component Resources, parent, protect, aliases

At the top of my component resources, BEFORE class, I have:

useast2ohio = aws.Provider("useast2ohio", region="us-east-2")

Then within my class I reference the provider with opts=Resource...:

class DB(ComponentResource):
@tusharshahrs
tusharshahrs / Pulumi.dev.yaml
Last active October 19, 2020 18:32
elasticbeanstalk in python with pulumi
KEY VALUE
aws:region us-east-2
@tusharshahrs
tusharshahrs / Pulumi.myvpc.yaml
Last active September 29, 2020 15:29
ecs fargate with aws provider changed
KEY VALUE
aws:region us-east-2
number_of_nat_gateways 3
vpc_cidr 10.0.0.0/24
vpc_name vpc-eks
zone_number 3
This configuration yaml is for my vpc, and is used to create a custom vpc. Currently this creates a vpc in us-east-2
@tusharshahrs
tusharshahrs / Pulumi.vpc-tag.yaml
Last active September 3, 2020 23:37
component tag vpc pulumi preview shows auto tagging
config:
aws:region: us-east-2
crosswalk-vpc:costCenter: "44332211"
crosswalk-vpc:number_of_nat_gateways: "1"
crosswalk-vpc:vpc_cidr: 10.0.0.0/22
crosswalk-vpc:vpc_name: vpc-missingtags
crosswalk-vpc:zone_number: "3"