I’m an absolute newb to both Pulumi and Typescript...
# general
e
I’m an absolute newb to both Pulumi and Typescript. I’ve decided to throw myself in at the deep end and choose as a first project beyond the quickstart to create a stack that can create new accounts in our org, something I do regularly. To do so I’m using
aws.organizations.Account
but I’d like to see examples of this in use. Sadly, it’s not one of the modules in the examples Github repo so all I can find is the module reference page (which reads like Greek to non-devs like myself). I just need to see one working example. Anyone here have something like that?
w
Does this example from the page help?
Copy code
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const account = new aws.organizations.Account("account", {
    email: "<mailto:john@doe.org|john@doe.org>",
});
If not - what beyond that are you looking to accomplish?
e
I had one of my more versed coworkers help me out. That was most of it but he showed me how to add
name
and
roleName
parameters to the
const
stanza. For our accounts we define both of those on creation so we don’t have to log in as root later. Thanks!