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

    white-rainbow-68240

    06/25/2020, 3:36 PM
    Hello! I'm evaluating Pulumi for my team, but got stuck with a vpc error. I posted on Twitter before finding this chat: https://mobile.twitter.com/marcusradell/status/1276146751200772105
  • w

    white-rainbow-68240

    06/25/2020, 3:38 PM
    I'm a bit confused, because I think I read in the Pulumi docs that you usually don't use the default vpc in production. But if that's the case, why are all examples using it? It makes it much harder to evaluate.
    b
    • 2
    • 20
  • w

    white-rainbow-68240

    06/25/2020, 3:39 PM
    I do love the premium feel of the entire product so far though ❤️
  • b

    best-lifeguard-91445

    06/25/2020, 5:06 PM
    What would cause pulumi to show changes to a stack when nothing has changed between subsequent runs? I keep getting these changes on each run, even without modifying any files:
    f
    • 2
    • 4
  • s

    sticky-kitchen-61063

    06/25/2020, 7:43 PM
    Is there a convenient way to grab subnets off a vpc that was imported? I know if I create a new awsx Vpc I'll have access to some subnet methods, but passing in an existing aws.Vpc (imported) doesn't populate
    privateSubnets
    or
    publicSubnets
    .
    l
    • 2
    • 5
  • l

    little-cartoon-10569

    06/25/2020, 11:33 PM
    Is it possible to use StackReference to access projects and stacks not in app.pulumi.com? I've got some projects in S3, and I'd like to use StackReference to share values between them, but I can't grok the code in pulumi/pkg/backend/httpstate... not even confident that's the right place to be looking...
    b
    • 2
    • 3
  • f

    fast-ice-1848

    06/26/2020, 5:46 AM
    hi folks, how can i setup AKS cluster with the existing vnet/subnet?
    ❤️ 1
  • a

    aloof-laptop-31826

    06/26/2020, 12:27 PM
    @fast-ice-1848 You can reference existing resources - See https://www.pulumi.com/blog/adopting-existing-cloud-resources-into-pulumi/
    f
    • 2
    • 9
  • w

    white-rainbow-68240

    06/26/2020, 12:54 PM
    I'm trying to setup github actions. I have the pulumi code in a subfolder named
    infra
    , but can't find a way to tell pulumi to use that subfolder. I can set a default working-directory for run commands, but not for
    uses
    . Any tips?
    a
    • 2
    • 24
  • a

    agreeable-alligator-68718

    06/26/2020, 1:47 PM
    anyone able to help with some python? Im having trouble passing to Output callback values into a container definition. I am doing this:
    redis_url = redis.cache_nodes.apply(lambda cache_nodes: cache_nodes[0].get('address'))
    
    def generate_container_definition(log_group_name):
        return json.dumps([{
    		'name': 'api',
    		'image': 'api/api:latest',
    		'portMappings': [{
    	 		'containerPort': 80,
    			'hostPort': 80,
    			'protocol': 'tcp'
    		}],
    		'logConfiguration': {
    			'logDriver': 'awslogs',
    			'options': {
                        'awslogs-group': log_group_name,
                        'awslogs-region': aws.get_region().name,
                    }
                },
    		'environment' : [
    			{ 'name' : 'ENV', 'value' : config.get('ENV') },
    			{ 'name' : 'REDIS_URL', 'value' : redis_url }
    		]
    	}])
    l
    • 2
    • 3
  • a

    agreeable-alligator-68718

    06/26/2020, 1:47 PM
    but then Im getting: TypeError: Object of type Output is not JSON serializable
  • a

    agreeable-alligator-68718

    06/26/2020, 1:47 PM
    is there a way to pass two output values into that function definition or am I doing something wrong?
  • b

    broad-dentist-41670

    06/26/2020, 2:06 PM
    Hi everyone, I'm trying to import some dns recordsets from gcp using pulumi and I just get flat timeout errors. Also get timeout errors trying to create them. In fact, I seem to be getting a lot of timeout errors. Anyone else have these kinds of problems? More details here: https://github.com/pulumi/pulumi-gcp/issues/375
  • a

    aloof-laptop-31826

    06/26/2020, 2:07 PM
    @broad-dentist-41670 I have been getting a few timeout errors with azure also - Not sure if there are any configs that can be set to extend timeout durations?
    b
    l
    • 3
    • 15
  • b

    bumpy-agent-19616

    06/26/2020, 3:06 PM
    I am getting this error to my surprise "*error: secrets (code=InvalidArgument): keyvault.BaseClient#Decrypt: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="BadParameter" Message="The parameter is incorrect.\r\n"*". Does anyone have any idea?
  • a

    acceptable-midnight-12902

    06/26/2020, 5:30 PM
    Greetings, where do you point people interested in comparisons between Pulumi and other choices like Helm charts and/or Spinnaker? I bet these are common questions someone has already answered.
    g
    g
    l
    • 4
    • 8
  • i

    icy-jordan-58549

    06/26/2020, 11:43 PM
    trying to convert this Terraform Provider https://github.com/databrickslabs/terraform-provider-databricks to
    pulumi
    and getting this:
    ./resources.go:90:26: not enough arguments in call to databricks.Provider
            have ()
            want (string)
    ./resources.go:132:4: unknown field 'AsyncDataSources' in struct literal of type tfbridge.JavaScriptInfo
    make: *** [tfgen] Error 2
    b
    • 2
    • 5
  • d

    damp-elephant-82829

    06/27/2020, 7:55 AM
    I know this sounds pretty basics, how is the resource_name and the name should be used? Should the resource_name be unique among all my projects or is it a logical name to identify the resource insinde the stack?
    b
    • 2
    • 2
  • d

    damp-elephant-82829

    06/27/2020, 7:55 AM
    I couldn’t find this in the docs
  • w

    wet-sunset-4939

    06/28/2020, 3:27 AM
    Hi All, Please help. I have a CertificateOrder but dont know how to export certificate to key vault. Please help on this? Thanks Steven
  • d

    damp-elephant-82829

    06/28/2020, 8:44 AM
    Hello, is pulumi resource creation idempotent? I am creating a GCP project but after I run pulumi up twice on the same stack, it fails with a 403 error Requested entity already exists, alreadyExists.
    h
    • 2
    • 1
  • g

    green-salesclerk-34937

    06/28/2020, 11:06 AM
    Hello, I'm running into this error while memoizing some function.
    function 'memoized': lodash.js(10544,29): which referenced
              function 'Hash': lodash.js(1904,17): which referenced
                function 'hashClear': lodash.js(1922,22): which captured
                  'nativeCreate', a function defined at
                    function 'create': which could not be serialized because
                      it was a native code function.
    Has any advice / resource to look at? I can avoid this error by declaring variable at root scope
    var memoized_f: .. | undefined = undefined
    and assign memoized function at runtime, but I wanna dig in the problem.
    w
    • 2
    • 2
  • d

    delightful-wall-24541

    06/28/2020, 10:34 PM
    hi everyone! has anyone got a container with all the necessary dev tools to start playing around? I've tried getting everything together in WSL but it's been difficult getting all the ducks in a row. I'm looking to switch to devcontainers, any tips would be appreciated!
    l
    g
    • 3
    • 4
  • l

    limited-wall-51998

    06/29/2020, 2:19 AM
    Hey Pulumates Newbie here Just wanted to see if some one has used pulumi to build a site where people can deploy a multi cloud environment Something like an interface for a multi public cloud provider (if that makes sense :) )
    f
    • 2
    • 2
  • b

    broad-breakfast-39210

    06/29/2020, 5:35 AM
    Hi everyone, does anyone know how to deploy a public Google Cloud Function with Pulumi?
    member=allUsers
    is not enough, if deploying with GCloud CLI also need to provide a flag [--allow-unauthenticated](https://cloud.google.com/functions/docs/securing/managing-access-iam#gcloud_4) but I don't know how to actually pass it to
    cloudfunctions.FunctionIamMember
    ... I think Terraform has the same issue, their [Public Function](https://www.terraform.io/docs/providers/google/r/cloudfunctions_function.html) docs are not valid...
    b
    • 2
    • 33
  • c

    curved-pharmacist-41509

    06/29/2020, 9:00 AM
    How does
    pulumi refresh
    get the role it tries to assume? It appears like it doesn't use the specified provider like preview/up does?
    f
    g
    • 3
    • 2
  • m

    mammoth-oyster-21227

    06/29/2020, 10:41 AM
    Hello. Is there any way to catch pulumi errors in runtime? I’m trying to check docker network with
    docker.getNetwork
    , but it returns error that I can’t handle with
    try catch
  • w

    white-rainbow-68240

    06/29/2020, 1:16 PM
    I'm getting an error in github actions. Posting details in a thread:
    s
    • 2
    • 15
  • c

    colossal-plastic-46140

    06/29/2020, 2:48 PM
    Hi Folks, does anyone do anything clever around how they manage the KMS keys they use inside future pulumi stacks? For example, I would like to use pulumi to manage my kms keys.
    i
    w
    • 3
    • 3
  • q

    quiet-hairdresser-18834

    06/29/2020, 6:21 PM
    Heya. I am wondering what the correct way to approach this. I am wanting to detect if an azure keyvault secret is present or not. If it is present, do nothing. If it is missing, create the new secret
    h
    • 2
    • 9
Powered by Linen
Title
q

quiet-hairdresser-18834

06/29/2020, 6:21 PM
Heya. I am wondering what the correct way to approach this. I am wanting to detect if an azure keyvault secret is present or not. If it is present, do nothing. If it is missing, create the new secret
h

hundreds-musician-51496

06/29/2020, 6:32 PM
Your best bet is to use the
import
argument, I think. That way the secret becomes "managed". Pulumi's model doesn't work really well with conditional infrastructure.
https://www.pulumi.com/docs/guides/adopting/import/
Hmm, looking at your other message I think I'm asnwering a different question. I was assumign the secret already existed and was (currently) managed outside pulumi.
q

quiet-hairdresser-18834

06/29/2020, 6:34 PM
Nope. I want to create it once, then use it going forward on subsequent runs
h

hundreds-musician-51496

06/29/2020, 6:35 PM
Use the
random.RandomPassword
resource
https://www.pulumi.com/docs/reference/pkg/random/
Unlcear to me how to avoid plaintext in the state file with that tho 😞
Found this in an azure exmaple https://github.com/pulumi/examples/blob/master/azure-ts-msi-keyvault-rbac/index.ts#L24
q

quiet-hairdresser-18834

06/29/2020, 6:44 PM
That worked! Thanks so much
View count: 1