https://pulumi.com logo
Docs
Join the conversationJoin Slack
Channels
announcements
automation-api
aws
azure
blog-posts
built-with-pulumi
cloudengineering
cloudengineering-support
content-share
contribex
contribute
docs
dotnet
finops
general
getting-started
gitlab
golang
google-cloud
hackathon-03-19-2020
hacktoberfest
install
java
jobs
kubernetes
learn-pulumi-events
linen
localstack
multi-language-hackathon
office-hours
oracle-cloud-infrastructure
plugin-framework
pulumi-cdk
pulumi-crosscode
pulumi-deployments
pulumi-kubernetes-operator
pulumi-service
pulumiverse
python
registry
status
testingtesting123
testingtesting321
typescript
welcome
workshops
yaml
Powered by Linen
general
  • s

    swift-painter-31084

    06/25/2019, 4:58 PM
    endpoint.get( '/posts/{postId}', ( req, res ) => {
        const post = req.params.postId;
        console.log( post );
        postsTable.get( { post } ).then( ( value ) => {
            res.status( 200 ).json( value );
        } );
    } );
    w
    • 2
    • 5
  • w

    worried-engineer-33884

    06/25/2019, 7:16 PM
    for a dynamic provider/resource, what do i return if i want
    create
    to fail?
    e
    t
    c
    • 4
    • 8
  • d

    damp-pillow-67781

    06/25/2019, 8:38 PM
    Hey I got a question. I need to get the content of a file from S3 in pulumi, the file is a
    .json
    or a
    .yaml
    file, but when calling
    object.body()
    it shows undefined. I wonder is this the proper way to get the content or any other suggestions on how to get that? The code I have now:
    const latestFile =  aws.s3.getBucketObject({
            bucket: bucket,
            key: `${key}/pod-settings_latest.json`,
        });
        console.log(`latest file: ${latestFile.body}`);
    which have the output as
    undefined
    .
    w
    p
    • 3
    • 13
  • g

    glamorous-printer-66548

    06/25/2019, 10:42 PM
    question: Having 1 project. Is it possible to have some of the stacks in that project use the pulumi hosted backend (
    <http://pulumi.io|pulumi.io>
    ) and some other stacks in that project use the
    local
    backend? The use case is that some of our engineers want to deploy to their personal minikube in which case it would make more sense to use the
    local
    backend.
    p
    b
    • 3
    • 11
  • r

    rich-lamp-32782

    06/26/2019, 1:36 AM
    Hey Guys, Quick question. I ran into a problem where I am unable to create an AWS principal association when trying to share a transit gateway to another account in my organization. The error seems to imply that you must enable sharing for the organization, which automatically accepts attachments. Is there any way around enabling that but still managing this principal association with Pulumi?
  • c

    cool-egg-852

    06/26/2019, 1:42 PM
    Do we know if pulumi has support or when it will have support for Workload identity (https://cloud.google.com/blog/products/containers-kubernetes/introducing-workload-identity-better-authentication-for-your-gke-applications)?
    • 1
    • 4
  • c

    cool-egg-852

    06/26/2019, 2:21 PM
    Um, I think something is wrong with pulumi.
    pulumi version
    gives
    v0.17.19
    but
    brew info pulumi
    gives
    v0.17.20
    .
    s
    w
    • 3
    • 7
  • q

    quick-action-34599

    06/26/2019, 3:47 PM
    I think https://pulumi.io/reference/crosswalk/aws/ecs/#ecs-tasks-containers-and-services has a syntax error. It shows
    awsx.ecs.Image.fromPath("<path-to-dockerfile>")
    but the docs (and a syntax error on my end) say
    fromPath
    requires two arguments.
    g
    • 2
    • 1
  • s

    swift-dinner-29731

    06/26/2019, 5:32 PM
    What can be a problem with timeouts error related to updating Fargate service:
    timeout while waiting for state to become 'true' (last state: 'false', timeout: 10m0s)
    and after this, i have +1 running task, but not replacing existing It stucks on the taskDefinition
    └─ awsx:x:ecs:FargateService         
     ~      └─ aws:ecs:Service                updating     [diff: ~taskDefinition]
    • 1
    • 2
  • w

    witty-pillow-9988

    06/26/2019, 5:44 PM
    Hi Everyone. I'm new to pulumi and i am really digging it. I am testing it to deploy serveless lambda/s3/nodejs set up and it works great. I was wondering if anyone has any pointers on connecting my lambda to a redis cluster on aws OR if there is a generic pulumi stack I can use to deploy.
  • c

    cool-egg-852

    06/26/2019, 6:54 PM
    I’m trying to do a ComponentResource. I have a few questions: 1) Is there any way to separate the different parts of the component into different files? It’s a large component and I’d like to break it up. 2) Did pulumi change the way the output works? I’m looking at https://github.com/pulumi/examples/tree/master/twilio-ts-component and it shows the component resources being under the component. In my own testing for my custom component, this is not the case. I’m not sure if I’ve done something wrong.
    • 1
    • 5
  • b

    busy-umbrella-36067

    06/26/2019, 9:12 PM
    has anyone here been able to use
    @pulumi/eks/Cluster
    with multiple people and IAM creds? If one of us creates the cluster, others can’t even refresh the stack since some K8S resources are created with a provider that doesn’t give them access. (no assume role inside of the
    aws-iam-authenticator
    section We can create a new provider with the necessary changes to deploy things on top of the cluster but there are still resources created by the
    @pulumi/eks/Cluster
    class (configmaps, rbac, dashboard) which use the default provider This is blocking us from having multiple people work with the same stack.
    w
    • 2
    • 4
  • s

    swift-painter-31084

    06/26/2019, 11:37 PM
    I'm trying to attach a DynamoDB stream handler function to a
    cloud.Table
    , but
    postsTable.dynamodbTable.onEvent( 'parseFeedPost', async ( e ) => {
    won't deploy because the stream doesn't exist and throws an error based on an empty ARN. It doesn't appear that I can set that directly when creating a Cloud Table, is there a way to set it later i.e. const enableStream = () => { postsTable.dynamodbTable.streamEnabled( true ); };?
    w
    • 2
    • 1
  • b

    bored-river-53178

    06/27/2019, 1:23 AM
    there is an error when running
    brew upgrade
    there_is_an_error_when_running__brew_upgrade_.pl
    w
    • 2
    • 1
  • c

    colossal-room-15708

    06/27/2019, 1:37 AM
    Is there a way to use secrets from AWS Secrets Manager or Systems Manager Parameter Store? If a customer already manages their secrets in either of them, duplicating the secrets inside of pulumi wouldn't be a great UX, but I'd also love to avoid a scenario where pulumi would get the secrets but then store them in clear text in state (something that terraform likes to do)
    ➕ 1
    w
    • 2
    • 1
  • h

    helpful-advantage-49286

    06/27/2019, 3:38 AM
    Is there any way to figure out why a given
    pulumi preview
    is saying it will replace an instance?
    w
    • 2
    • 4
  • h

    helpful-advantage-49286

    06/27/2019, 3:39 AM
    Doing some reconfiguration of my primary db and its saying it will replace which is a bit terrifying for obvious reasons 🙂
  • i

    important-ram-83431

    06/27/2019, 9:33 AM
    How can we report some Documentation Issues? I would like to share what I've faced to improve documentation
    t
    • 2
    • 2
  • b

    bored-river-53178

    06/27/2019, 10:15 AM
    does anybody knows what is the advantage of having separate route tables for each subnet by default with awsx? (https://github.com/pulumi/pulumi-awsx/blob/master/nodejs/awsx/ec2/vpc.ts#L177)
    l
    • 2
    • 18
  • s

    stale-postman-77028

    06/27/2019, 11:26 AM
    Hey Pulumi community 🙂
  • s

    stale-postman-77028

    06/27/2019, 11:26 AM
    Very happy to share the launch of our product Archbee - we use Pulumi for part of our infrastructure on AWS
  • s

    stale-postman-77028

    06/27/2019, 11:26 AM
    https://www.producthunt.com/posts/archbee-2
    🎉 2
  • s

    stale-postman-77028

    06/27/2019, 11:27 AM
    Happy to receive questions and feedback on the PH post 🙂
  • b

    better-rainbow-14549

    06/27/2019, 11:31 AM
    gosh that looks nice
  • s

    stale-postman-77028

    06/27/2019, 11:31 AM
    Oliver, thank you, I hope you end up using it and giving us that juicy feedback 🙂
    👍 2
  • b

    better-rainbow-14549

    06/27/2019, 11:32 AM
    a no-signup demo would be nice though
  • s

    stale-postman-77028

    06/27/2019, 11:32 AM
    Yes, a lot of people requested this, will def make it happen 🙂
  • b

    better-rainbow-14549

    06/27/2019, 11:33 AM
    cool
  • g

    glamorous-waitress-51149

    06/27/2019, 12:18 PM
    is it possible to get a vpc with pulumi just by name?
    b
    s
    • 3
    • 11
  • s

    stocky-spoon-28903

    06/27/2019, 12:38 PM
    Random aside @glamorous-waitress-51149: do you know of any infrastructure user groups in the south west?
    g
    b
    f
    • 4
    • 71
Powered by Linen
Title
s

stocky-spoon-28903

06/27/2019, 12:38 PM
Random aside @glamorous-waitress-51149: do you know of any infrastructure user groups in the south west?
g

glamorous-waitress-51149

06/27/2019, 12:41 PM
something at the back of my head says there is one but can’t remember off the top of my head 🙂
https://www.meetup.com/Bristol-DevOps/
b

broad-dog-22463

06/27/2019, 12:42 PM
https://www.meetup.com/AWSBathUserGroup/
g

glamorous-waitress-51149

06/27/2019, 12:43 PM
https://www.meetup.com/devops_southampton/
b

broad-dog-22463

06/27/2019, 12:44 PM
There are also DotNet User Groups that would happily listen to how to build in Azure with TypeScript
g

glamorous-waitress-51149

07/02/2019, 10:30 AM
back to the original question. trying
awsx.ec2.Vpc.fromExistingIds
seems to fail or doesn’t return an object for some reason. we’d like to have a vpc object that means we can access the
privateSubnetIds
property. any ideas?
s

stocky-spoon-28903

07/02/2019, 2:11 PM
How are you calling it?
When you pass in the existing IDs you have to nominate which subnets are respectively public, private and isolated
g

glamorous-waitress-51149

07/02/2019, 2:34 PM
calling it like so:
const primaryVpc = awsx.ec2.Vpc.fromExistingIds("primary", {
    vpcId: primaryVpcId
});
primaryVpcId
is a value in our config of the vpc id 🙂
b

broad-dog-22463

07/03/2019, 9:37 AM
Ok I have another suggestion about getting vpc @glamorous-waitress-51149
Trying it out now
g

glamorous-waitress-51149

07/03/2019, 9:41 AM
ta, i mean i could rewrite what i have because the aws/awsx types don’t tie in eg/awsx wants a vpc type but aws returns a vpcresult type etc but I’d rather not 🙂
b

broad-dog-22463

07/03/2019, 9:49 AM
so you want the VPC so you can get the Subnets out of the object right?
g

glamorous-waitress-51149

07/03/2019, 9:50 AM
yeah so i can create a dbsubnet but i also use what i retrieve here too
const sg = new awsx.ec2.SecurityGroup("jcsg", {vpc: primaryVpc});
b

broad-dog-22463

07/03/2019, 9:54 AM
👍
ok, @glamorous-waitress-51149 so I have the VPC object using this way instead now
trying one other way to see for compatability
g

glamorous-waitress-51149

07/03/2019, 9:59 AM
thanks 👍
b

broad-dog-22463

07/03/2019, 9:59 AM
so both of these give me the same object
const vpc = pulumi.output(aws.ec2.getVpc({
    id: "vpc-866580ff",
}));

export const id = vpc.id;

const primaryVpc = awsx.ec2.Vpc.fromExistingIds("primary", {
    vpcId: "vpc-866580ff"
});

export const xId = primaryVpc.id;
the result from the CLI is as follows:
▶ pulumi up --yes
Previewing update (dev):

     Type                 Name         Plan
     pulumi:pulumi:Stack  aws-vpc-dev

Resources:
    2 unchanged

Updating (dev):

     Type                 Name         Status
     pulumi:pulumi:Stack  aws-vpc-dev

Outputs:
    id : "vpc-866580ff"
    xId: "vpc-866580ff"

Resources:
    2 unchanged

Duration: 8s
so if that
fromExistingIds
isn't returning an object, then there's something wrong with the lookup to your account
g

glamorous-waitress-51149

07/03/2019, 10:07 AM
seems to export ok
b

broad-dog-22463

07/03/2019, 10:07 AM
but you can't use it?
g

glamorous-waitress-51149

07/03/2019, 10:08 AM
privateSubnetIds is empty
b

broad-dog-22463

07/03/2019, 10:09 AM
ok so this is a bug - if you can see that there are private subnets in your account
then we have a bug in the awsx package
g

glamorous-waitress-51149

07/03/2019, 10:10 AM
there in console
b

broad-dog-22463

07/03/2019, 10:10 AM
100% a bug then
I know you might not have time now, but can you file an issue when you get a chance?
there's a big release of the awxs module pending thathas a tonne of fixes...
I wonder if they will solve your problem...
https://github.com/pulumi/pulumi-awsx/blob/master/CHANGELOG.md#provider-fixes--reparenting
g

glamorous-waitress-51149

07/03/2019, 10:12 AM
if its a bug its in
fromExistingIds
because when you create a vpc its fine using
const vpc = new awsx.ec2.Vpc("custom", {
    subnets: [{ type: "public" }, { type: "private" }],
});
b

broad-dog-22463

07/03/2019, 10:12 AM
i am wondering if its the parenting issue wrt to the VPC
g

glamorous-waitress-51149

07/03/2019, 10:17 AM
fyi added a check for public ids too and thats empty too
b

broad-dog-22463

07/03/2019, 10:18 AM
there we are 🙂
+ privateSubnets: []
  + publicSubnets : []
    xId           : "vpc-866580ff"
mine are empty too
this feels like a parenting bug
g

glamorous-waitress-51149

07/03/2019, 10:18 AM
ok, glad i’m not being an annoying noob then
b

broad-dog-22463

07/03/2019, 10:19 AM
you 100% are not
legit bug
now whether it's solved by master is the question...
g

glamorous-waitress-51149

07/03/2019, 10:19 AM
🤞
@broad-dog-22463 is there any ETA on the new release?
b

broad-dog-22463

07/03/2019, 10:43 AM
when the team come online today, I will ask when it's going to hit
I think this feels like a big bug we need to fix for people
can you add a github issue in pulumi/pulumi-awsx so I can point people at this?
g

glamorous-waitress-51149

07/03/2019, 10:45 AM
👍
@broad-dog-22463 https://github.com/pulumi/pulumi-awsx/issues/357
b

broad-dog-22463

07/03/2019, 10:52 AM
cheers man - I will see that we look into this
sorry for the hassle!
f

fresh-summer-65887

07/03/2019, 11:13 AM
Cheers for the help here Paul 😉
b

broad-dog-22463

07/03/2019, 11:14 AM
👍
g

glamorous-waitress-51149

07/03/2019, 11:46 AM
i thought i could work around the issue by calling
aws.ec2.getSubnetIds({vpcId: primaryVpcId,})
but problem is the results don’t tell you what type the subnet is eg/private/public/isolated etc 🙂
f

fresh-summer-65887

07/03/2019, 1:23 PM
@glamorous-waitress-51149 Could we hard code any values in this stack for now?
g

glamorous-waitress-51149

07/03/2019, 1:23 PM
that’s exactly what i’ve just done
🤢
f

fresh-summer-65887

07/03/2019, 1:50 PM
ha
g

glamorous-waitress-51149

07/04/2019, 8:59 AM
ooh i see a new pulumi version is available @broad-dog-22463 is that a coincidence? 🙂
b

broad-dog-22463

07/04/2019, 9:02 AM
Of Pulumi-awsx?
g

glamorous-waitress-51149

07/04/2019, 9:09 AM
no the pulumi binary
b

broad-dog-22463

07/04/2019, 9:10 AM
I think that’s for something else :)
g

glamorous-waitress-51149

07/04/2019, 9:11 AM
thought there might have been a massive roll out of everything 😉
b

broad-dog-22463

07/04/2019, 9:17 AM
nah, not the day before July 4th weekend!
g

glamorous-waitress-51149

07/04/2019, 9:20 AM
https://twitter.com/jchannon/status/1146658754106155008
b

broad-dog-22463

07/04/2019, 9:20 AM
😄
View count: 1