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
  • d

    dazzling-scientist-80826

    11/25/2018, 5:55 PM
    I've found myself wishing that I could use Pulumi to do schema management for my database. I noticed that terraform has a Postgresql provider, but it doesn't support schema resources at the level of tables, indexes, views, etc. I'd be curious if anybody had given much thought to this.
  • d

    dazzling-scientist-80826

    11/25/2018, 6:13 PM
    I really like the idea because, "at scale", database migrations tend to get bifurcated in to two parts: 1) schema growth, deprecation, and pruning and 2) live data migrations. The former seems like a really good fit for Pulumi. The one part that seems tricky is that there may need to be a more fine-grained notion of "protect: true". That is, updating a table resource that adds columns should be safe, but removing columns should require they go through a deprecation phase.
  • e

    eager-area-86739

    11/25/2018, 6:52 PM
    Hi, After resolving the previous problem, I'm running into another (perhaps my knowledge of Javascript is not up to pair). I have a stack that reads a resource that was already created, such as:
    const theQueue = aws.sqs.getQueue({
            name: "the-queue"
        });
    exports.QueueArn = theQueue.arn.apply(arn => arn);
    However, the const
    theQueue
    is empty. What I'm doing wrong? Thanks
    b
    • 2
    • 2
  • g

    gorgeous-egg-16927

    11/26/2018, 4:10 PM
    @dry-pilot-73614 Thanks for getting the kubespy formula added to homebrew! I just sent a link to the email on your GH profile for a free Pulumi t-shirt. 🙂
    🎉 2
  • s

    straight-guitar-55156

    11/27/2018, 12:00 AM
    I am absolutely new to Pulumi, and wish to know if anybody has used it for security updates/patch managment. Googl-ing didn't help much. Most of the blogs/posts are related to bootstrapping.
  • b

    busy-umbrella-36067

    11/27/2018, 12:12 AM
    @straight-guitar-55156 what are you trying to accomplish?
    s
    • 2
    • 21
  • f

    full-dress-10026

    11/27/2018, 12:55 AM
    How would I set the
    ulimits
    key in a
    cloudAws.Service
    ? https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#container_definition_limits
  • f

    full-dress-10026

    11/27/2018, 12:57 AM
    I see the property here: https://pulumi.io/reference/pkg/nodejs/@pulumi/aws/ecs/#property-ulimits but don't see it here https://pulumi.io/reference/pkg/nodejs/@pulumi/cloud-aws/index.html#Service.
    w
    • 2
    • 7
  • h

    high-morning-17948

    11/27/2018, 3:53 AM
    Is there any docmentation to make pulumi deploy on localstack by using awslocal or by using a proxy to reroute the aws endpoints to localstack?
    w
    • 2
    • 4
  • b

    busy-umbrella-36067

    11/27/2018, 4:45 AM
    Are there any good established patterns for testing IaC created with pulumi?
  • b

    busy-umbrella-36067

    11/27/2018, 4:46 AM
    I'm gonna start playing with https://github.com/gruntwork-io/terratest tomorrow. But I I think others would be more comfortable with a JS sdk.
    w
    • 2
    • 1
  • f

    faint-application-2746

    11/27/2018, 5:07 AM
    Trying to wrap my head around https://aws.amazon.com/blogs/aws/firecracker-lightweight-virtualization-for-serverless-computing/
  • f

    faint-application-2746

    11/27/2018, 5:12 AM
    https://firecracker-microvm.github.io/
  • f

    faint-application-2746

    11/27/2018, 5:13 AM
    Firecracker was built by developers at Amazon Web Services to enable services such as AWS Lambda and AWS Fargate
  • f

    faint-application-2746

    11/27/2018, 5:13 AM
    This means Pulumi will have no issue using it too, great 🙂
    w
    • 2
    • 6
  • b

    bulky-policeman-29913

    11/27/2018, 12:17 PM
    Anyone know of a good resource that explains the state options offered by Pulumi? Is there a way to do state management with something like S3/Blob storage like Terraform does or are you restricted to using the Pulumi offerings?
    s
    w
    • 3
    • 11
  • c

    cold-coat-35200

    11/27/2018, 12:56 PM
    hi, is it possible to get the default provider in the root index.ts file? I want to create a vpc peering connection between 2 different region and I don't want to recreate the default provider if not necessary, in terraform it's possible with
    providers = {
        aws.eu_central_1 = "aws"
        aws.eu_west_1    = "aws.eu-west-1"
      }
    where "aws" means the default aws provider
    w
    • 2
    • 2
  • f

    full-dress-10026

    11/27/2018, 8:30 PM
    Is there a way to get the current AWS account ID for a stack?
  • w

    white-balloon-205

    11/27/2018, 8:34 PM
    export let accountDetails = aws.getCallerIdentity();
    👍 1
  • f

    full-dress-10026

    11/27/2018, 8:40 PM
    I have an almost exact copy of this example [1] in my code, only the argument
    lambdaArn
    to
    swaggerSpec
    is a type
    Output
    . What is the correct way to write a function like
    swaggerSpec
    to operate on `Output`s? [1] https://github.com/pulumi/examples/blob/6852169b91da1d9de6912656fead3a355d6c57a3/aws-ts-serverless-raw/index.ts#L73-L82
    w
    • 2
    • 1
  • f

    full-dress-10026

    11/27/2018, 8:45 PM
    If my stack name is
    MyOrg/example-dev
    , does
    pulumi.getStack()
    return
    example-dev
    or
    MyOrg/example-dev
    ?
    w
    • 2
    • 2
  • f

    full-dress-10026

    11/27/2018, 8:56 PM
    I am trying to create a
    Network
    from an existing VPC with this code:
    const network = infra.Network.fromVpc("network", {
        vpcId: datomicVpcId,
        subnetIds: datomicSubnets,
        publicSubnetIds: datomicSubnets,
        securityGroupIds: [appSecurityGroupId],
        usePrivateSubnets: false
    });
    subnetIds
    and
    publicSubnetIds
    are marked as
    Type 'Output<any[]>' is not assignable to type 'Input<Input<string>>[]'
    .
    datomicSubnets
    is defined as:
    export let datomicSubnets = datomicStorageStack.outputs.apply(o => [o["Subnet0"], o["Subnet1"], o["Subnet2"]]);
    Is there a way to make this work?
    l
    w
    • 3
    • 15
  • f

    full-dress-10026

    11/27/2018, 9:57 PM
    I have two Pulumi resources, call them
    pA
    and
    pB
    , that need to be deployed. Before
    pB
    can be deployed, I have some custom CLI stuff that needs to be run that depends on
    pA
    outputs. Is it possible to do this with Pulumi?
    i
    m
    • 3
    • 9
  • f

    full-dress-10026

    11/27/2018, 10:29 PM
    Out of curiosity, can Pulumi provision a k8s cluster and deploy services to said cluster?
    m
    g
    • 3
    • 14
  • f

    full-dress-10026

    11/27/2018, 11:16 PM
    Can you use
    apply
    across multiple outputs?
    w
    • 2
    • 1
  • b

    busy-umbrella-36067

    11/27/2018, 11:19 PM
    failed to verify snapshot: child resource urn:pulumi:cointainers-dev::XXC-0151 refers to missing parent XXX
  • b

    busy-umbrella-36067

    11/27/2018, 11:20 PM
    I keep getting this after a failed pulumi update that uses nested Pulumi components. The update will fail to create resources and deletes the parent resource without deleting the dependencies. This then causes subsequent update attempts to fail with that error
    w
    i
    • 3
    • 14
  • b

    busy-umbrella-36067

    11/27/2018, 11:24 PM
    also, is there a benefit for failing pulumi refreshes if a service is broken? Example:
    Diagnostics:
      kubernetes:core:Service (XXXXX-XXX-0151):
        error: Preview failed: 2 errors occurred:
    
        * Resource XXXXX-XXX-0151' was created but failed to initialize
        * Service does not target any Pods. Application Pods may failed to become alive, or field '.spec.selector' may not match labels on any Pods
    
    error: an error occurred while advancing the preview
    If I’m trying to update the state of my infrastructure to detect some drift and fix it, this would be a blocker
    g
    c
    • 3
    • 15
  • f

    full-dress-10026

    11/27/2018, 11:45 PM
    Is it possible to attach multiple IAM policies to an IAM role at once?
    s
    m
    • 3
    • 17
  • f

    full-dress-10026

    11/28/2018, 12:11 AM
    Can I have two projects with different names have a stack with the same name? e.g. project A has stack name
    prod
    and project B has stack name
    prod
Powered by Linen
Title
f

full-dress-10026

11/28/2018, 12:11 AM
Can I have two projects with different names have a stack with the same name? e.g. project A has stack name
prod
and project B has stack name
prod
View count: 1