https://pulumi.com logo
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
  • c

    clever-dawn-27155

    10/16/2019, 10:49 AM
    Hi everyone. Is there a way to export/access the historical activities for an entire organisation? I'd like to maintain a graph that illustrates the team's activities (priority on deployments) over the last X period (such as 90 days or quarter, etc)
    ❓ 1
    w
    • 2
    • 3
  • c

    colossal-room-15708

    10/16/2019, 11:57 AM
    Is this here a bug? Why is it asking me for my pulumi token when clearly I'm asking it to log in to the azure backend?
    b
    • 2
    • 5
  • b

    best-waiter-16927

    10/16/2019, 1:05 PM
    Hi everyone. Found what seems to be a critical bug in creating s3 buckets. When creating a bucket that already exists (was created manually or created by a different pulumi stack) pulumi will show 'created' and the stack will now reference that already existing bucket. Meaning we can have the same s3 bucket managed by different stacks. Expected behavior: Pulumi should fail creating an already existing bucket (that is not managed by this stack). Pulumi CLI version: 1.3.1, Pulumi SDK version: 1.2.0, Pulumi AWS version: 1.5.0
    b
    • 2
    • 4
  • b

    better-rainbow-14549

    10/16/2019, 1:09 PM
    i just got a very peculiar set of results in a preview and fortunately it's on an AKS cluster i don't need anymore so i proceeded... the actual updates it did were entirely different to what it previewed:
    Resources:
        ~ 2 to update
        - 78 to delete
        +-15 to replace
        95 changes. 8 unchanged
    ~~
    Resources:
        ~ 2 updated
        101 unchanged
    
    Duration: 5m49s
    • 1
    • 1
  • s

    shy-barista-34801

    10/16/2019, 1:34 PM
    Hi there, I'm new to pulumi and I'd like to know if there's a way to run a bash command through python code.
  • s

    shy-barista-34801

    10/16/2019, 1:35 PM
    For instance if I'd like to set an environment variable.
  • h

    handsome-yak-9760

    10/16/2019, 1:35 PM
    subprocess.call
  • h

    handsome-yak-9760

    10/16/2019, 1:36 PM
    You can also set them directly from python
  • h

    handsome-yak-9760

    10/16/2019, 1:36 PM
    https://stackoverflow.com/a/5971326/2429333
  • s

    shy-barista-34801

    10/16/2019, 1:37 PM
    Oh, yes that would work too. Thank you very much. Though
    subprocess
    seems like something I really should try using. Is there a way to import that object before invoking
    call()
    ?
  • s

    shy-barista-34801

    10/16/2019, 1:42 PM
    ah I just realized you're referring to the python module
  • h

    handsome-yak-9760

    10/16/2019, 3:59 PM
    How do I fix the problem with pulumi saying that aws:region is not configured even though it is:
    Diagnostics:
      aws:ec2:VpcPeeringConnection (vpc-peering-connection):
        error: 1 error occurred:
        	* missing required configuration key "aws:region": The region where AWS operations will take place. Examples are us-east-1, us-west-2, etc.
        Set a value using the command `pulumi config set aws:region <value>`.
  • h

    handsome-yak-9760

    10/16/2019, 4:00 PM
    I am creating a config with
    pulumi.Config()
  • h

    handsome-yak-9760

    10/16/2019, 4:01 PM
    and it seems that it triggers the error
    w
    • 2
    • 1
  • m

    millions-judge-24978

    10/16/2019, 4:42 PM
    I seem to still be having some very weird issues from the k8s auto-aliasing change (previously mentioned here https://pulumi-community.slack.com/archives/C84L4E3N1/p1570297147325000) Here’s a super simple example where I”m seeing weirdness: https://gist.github.com/timmyers/adc57e4dca7dc7a3c14a310d5f4ce6a6 The program consists of a namespace and a deployment. I have those both applied successfully,
    pulumi up
    shows no diff. Then I uncomment the service object and try to
    pulumi up
    again. The first run crashed, the second one gives a very odd unexpected diff.
    w
    g
    • 3
    • 9
  • a

    alert-beard-9601

    10/16/2019, 7:23 PM
    I'm having issues with one Fargate service in a public subnet talking to another which is behind an internal alb in a private subnet. They're both in the same VPC created using awsx and have routes which cover the entire CIDR block of the VPC set to local.
    • 1
    • 2
  • f

    full-dress-10026

    10/16/2019, 11:04 PM
    Any idea if using https://github.com/aws/jsii with Pulumi work?
    g
    w
    • 3
    • 4
  • e

    early-intern-90238

    10/17/2019, 2:38 AM
    I think theres a bug in gcp.compute.Address, if you leave out Region its suppose to be a Global Address type, if you specify region its suppose to be a regional address type. But if I leave it out, it's still filling in Region so it's impossible to create a Global address type.
    e
    • 2
    • 2
  • w

    wide-judge-30323

    10/17/2019, 4:34 AM
    Hi all. Is there a way to call async functions inside pulumi code (Typescript) ? I often find it useful to execute other tasks (write a file, call an api, etc) based on resources created by pulumi. In another runtime this wouldn't be an issue - but many node packages are async only - and I have not been able to use them with pulumi. Anyone had success with this?
    b
    b
    w
    • 4
    • 7
  • e

    elegant-dress-88912

    10/17/2019, 8:31 AM
    Is there a simple way of moving resources between stacks? I am trying to split big infrastructure stack into a "micro-stacks", because big number of resources makes pulumi very slow.
  • w

    worried-engineer-33884

    10/17/2019, 10:53 AM
    When will @pulumi/pulumi 1.3.2 be published to npm?
  • b

    broad-dog-22463

    10/17/2019, 10:57 AM
    @worried-engineer-33884 we are looking at releasing later today (Seattle time)
    w
    • 2
    • 1
  • r

    rhythmic-finland-36256

    10/17/2019, 3:22 PM
    pulumi destroy
    on an AKS cluster with custom networking (referencing a self-created subnet from the aks cluster) resulted in an error of wrong destroy order (subnet cannot be deleted as there are resources in it) So pulumi lost the aks cluster from the pulumi state but it still exists in Azure. Adding a
    dependsOn
    seems unnecessary as the chain should already exist due to the reference of the subnet in the aks cluster creation. How to clean that up?
    pulumi up
    will create an additional cluster as there is no more reference in the pulumi state…
    w
    b
    b
    • 4
    • 27
  • i

    incalculable-engineer-92975

    10/17/2019, 4:56 PM
    Hello, I'm writing an integration test with Typescript and need to wait for a Helm Chart to complete and the associated resources to be completed. I'm at a loss for how to do that. Anyone have any pointers?
    g
    • 2
    • 1
  • m

    millions-judge-24978

    10/17/2019, 6:02 PM
    I have a program using
    aws.getCallerIdentity
    that was working and has somehow now stopped. I changed the program to just
    import * as pulumi from '@pulumi/pulumi';
    import * as aws from '@pulumi/aws';
    
    (async () => {
      console.log('start')
      console.log(await aws.getCallerIdentity());
      console.log('end')
    })();
    and it hangs on
    aws.getCallerIdentity()
    Any idea what could have happened?
    g
    • 2
    • 5
  • s

    sparse-tomato-56640

    10/17/2019, 6:40 PM
    I'm trying to enable CORS on an api gateway endpoint using awsx, but am unable to find an example in the docs of how to do so.
    new awsx.apigateway.API(`firebaseAuth-${stack}`, {
    	routes: [
    		{
    			path: '/',
    			method: 'POST',
    			apiKeyRequired: true,
    			eventHandler: new aws.lambda.CallbackFunction(`firebaseAuth-${stack}`, {
    				callback: (event, _, cb) =>
    					cb(null, {
    						statusCode: 200,
    						headers: {
    							'Access-Control-Allow-Origin': '*',
    						},
    						body: handler(event),
    					}),
    			}),
    		},
    	],
    })
    Is there a simple way to add cors headers to the preflight response in the awsx implementation?
    s
    m
    • 3
    • 26
  • c

    cool-egg-852

    10/17/2019, 7:46 PM
    Why is it that anytime I use a helm chart I get
    [Can't preview] all chart values must be known ahead of time to generate an accurate preview.
    during preview?
    c
    m
    +2
    • 5
    • 19
  • a

    adamant-dress-73325

    10/17/2019, 11:53 PM
    Is there a way to invoke
    task.run({ cluster });
    on a FargateTaskDefinition at the top-level of our pulumi program during update? We are trying to run a one-off task inside a container, without needing lambda like in https://www.pulumi.com/docs/guides/crosswalk/aws/ecs/#running-fire-and-forget-tasks .
    w
    • 2
    • 2
  • h

    handsome-xylophone-18806

    10/18/2019, 11:29 AM
    Terraform has input variables. That allows user inputs value when run commands. Is there similar solution for Pulumi?
    s
    t
    • 3
    • 7
  • b

    bitter-island-28909

    10/18/2019, 6:57 PM
    Many thanks for the new targeted update/destroy features in the last few releases. This has made my life a lot easier! 👍
Powered by Linen
Title
b

bitter-island-28909

10/18/2019, 6:57 PM
Many thanks for the new targeted update/destroy features in the last few releases. This has made my life a lot easier! 👍
View count: 1