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

    white-balloon-205

    12/17/2019, 6:37 PM
    set the channel description: Using Google Cloud with Pulumi
  • p

    prehistoric-account-60014

    12/18/2019, 5:51 PM
    Hello there 👋 I guess I’ll kick off conversations around the GCP provider with the first question. Are there any plans to support remote Docker image builds with Pulumi using Google Cloud Build? (i.e.,
    gcloud builds submit
    ) Something like this could help increase speed CI/CD pipelines by building images with GCP instead of locally.
    s
    w
    • 3
    • 15
  • l

    limited-honey-31480

    12/18/2019, 7:21 PM
    nyone can help me... just start change from terraform to pulumi and when i did the start tutorial for gcp i got the error... I already tryed check the gcloud auths...install the gcloud inside the env and check bill permissions, but noting looks solve it
    w
    • 2
    • 4
  • h

    handsome-cat-98152

    12/19/2019, 8:37 AM
    Hello 👋 I'm having trouble configuring a NodePool. How to I set the Security->Access scopes-> Storage section of a NodePool?
    s
    • 2
    • 2
  • p

    prehistoric-account-60014

    12/20/2019, 11:46 PM
    Is the recommended way to manage a GCP Container Registry
    gcp.container.getRegistryRepository
    ? or is there a first-class resource like Azure’s
    azure.containerservice.Registry
    ?
    b
    • 2
    • 2
  • i

    important-leather-28796

    12/23/2019, 5:26 PM
    Trying to create a zonal gcp cluster, my setup is good for a regional but I want to create some smaller test clusters. When I use
    location: us-central1-f
    to create the cluster I get complaints about
    Cannot determine region: set in this resource, or set provider-level 'region' or 'zone'
    . It is true, I intend to explicitly set project, zone, region. What do I need to pass to
    gcp.container.Cluster
    to satisfy it for a zonal cluster?
    g
    • 2
    • 16
  • i

    important-leather-28796

    12/23/2019, 7:54 PM
    I used to trigger a VPC native cluster with:
    ipAllocationPolicy: {
              useIpAliases: true, //  creates the cluster with Alias IP addresses
              createSubnetwork: true, // enables ip aliasing
            },
    but this config was removed. I used an explicit network/subnetwork passed to my cluster, but it does not trigger creation of a VPC native cluster. What could I be missing there @gentle-diamond-70147?
    g
    • 2
    • 9
  • p

    prehistoric-account-60014

    12/31/2019, 6:09 PM
    Has anybody gotten an issue similar to
    could not get cloud url: unmarshalling credentials file: unexpected end of JSON input
    ? Specifically after calling
    gcloud auth activate-service-account --key-file "$KEY_FILE"
    successfully?
    w
    m
    • 3
    • 51
  • l

    limited-honey-31480

    01/08/2020, 4:03 PM
    anyone have any example for gcp cloud run on pulumi?
    s
    s
    • 3
    • 5
  • b

    better-actor-92669

    01/15/2020, 4:10 PM
    message has been deleted
  • c

    crooked-jelly-50877

    01/23/2020, 7:13 PM
    Getting a
    error: googleapi: Error 400: Master version "1.15.7-gke.2" is unsupported., badRequest
  • c

    crooked-jelly-50877

    01/23/2020, 7:14 PM
    Any hints on where to look to diagnose that?
  • c

    crooked-jelly-50877

    01/23/2020, 7:34 PM
    I think I found the issue - the location for the getK8Sversions should be the region - not the zones
  • s

    some-xylophone-39695

    01/24/2020, 3:47 AM
    Has anyone created a Postgres Cloud SQL database that utilizes a private ip?
  • s

    some-xylophone-39695

    01/24/2020, 3:47 AM
    https://www.terraform.io/docs/providers/google/r/sql_database_instance.html
  • s

    some-xylophone-39695

    01/24/2020, 3:48 AM
    There is an example in terraform, but I have no clue how to do it in Pulumi.
    g
    • 2
    • 9
  • l

    limited-honey-31480

    01/25/2020, 1:58 PM
    anyone know if pulumi can interrupt(stop) and start it again by cmd comand?
  • b

    better-actor-92669

    01/30/2020, 9:36 AM
    Hi all. I have successfully created a Mixed GKE cluster with pulumi (python sdk). It took a while, because I had to contact GCP support team like 10 times, as there were a lot of "hidden" issues that even Stackdriver wasn't able to display properly. If you have any questions or u are struggling with this as well, please feel free to reach out to me.
  • b

    bland-florist-25081

    01/30/2020, 11:21 AM
    Hi, I want to create a persistent disk but it seems the project parameter is required instead of using the currently active project. How can I get the currently set project ID?
    gcloud config get-value project
    returns the correct value but I can't figure out how to get it in pulumi.
    g
    • 2
    • 12
  • d

    dry-raincoat-51244

    01/30/2020, 3:09 PM
    Hi all, While using the example: 'gcp-cs-gke' I get this fine error: error: project: required field is not set Is there a way to know what exactly is wrong?
    b
    • 2
    • 2
  • b

    bitter-article-12081

    02/01/2020, 6:37 PM
    Hi All, is there any sample or example available for GCP App engine deployment using Pulumi?
  • m

    melodic-byte-32771

    02/02/2020, 3:57 PM
    Hello everybody! I am working on a tool called ng-deploy-universal. https://github.com/Dev-Thought/ng-deploy-universal/ It will help developer easy to create / delete their infrastructure. I am struggling a bit with gcp and would like to know where I can find a good example for following infrastructure: • staticDeployment • cdn creation and mapping • custom domain mapping to cdn So at the end I am searching for a piece of code like this example just only for gcp. https://github.com/pulumi/examples/tree/master/aws-ts-static-website Maybe I just can’t find the example in the pulumi repo. I hope you can help me!
    g
    • 2
    • 9
  • a

    astonishing-afternoon-15745

    02/07/2020, 10:29 PM
    Hi folks, I'm just started looking at the gcp provider to create a container cluster. But it keeps failing on me when I want to update. Only way to make it work again is to destroy everything and create it all again.
    Diagnostics:
      pulumi:pulumi:Stack (pulumi-gke-playground-dev):
        panic: fatal: An assertion has failed: Expected diff to not require deletion or replacement during Update of urn:pulumi:dev::pulumi-gke-playground::gcp:container/cluster:Cluster::daniel-cluster
        goroutine 27 [running]:
    w
    • 2
    • 2
  • a

    astonishing-afternoon-15745

    02/07/2020, 10:29 PM
    What would help to diagnose this problem?
  • b

    best-summer-38252

    02/09/2020, 6:01 AM
    anyone with an example of looking up the default network for a project ?
    m
    g
    • 3
    • 6
  • c

    cold-caravan-83486

    02/12/2020, 2:11 PM
    Has anyone had any success updating the docker image associated with a Cloud Run service? The operation to update the image fails with error 409 and I have to remove the service and its dependents from the script, update, and then add them back and update.
    w
    t
    • 3
    • 7
  • a

    able-crayon-21563

    02/14/2020, 4:29 AM
    Sharing a snippet of provisioning a GKE Workload Identity using Pulumi: https://gist.github.com/EronWright/039192b4e7a4e53828cda0e76e3a0498
  • l

    limited-rainbow-51650

    02/14/2020, 9:48 AM
    We recently signed up for a Google Cloud account and I would like to automate project creation via Pulumi & Gitlab CI. My idea was to create a service account for Pulumi to use and assign it the proper roles so we can manage our GCP projects via Pulumi code and apply it when merging to master. But it seems service accounts already require a project to create them. Has anyone automated GCP project creation via Pulumi? How did you setup the GCP credentials? I’m currently testing project creation with my account but I am the Organization Administrator and I don’t want to use this account in my Gitlab setup.
  • l

    limited-rainbow-51650

    02/14/2020, 10:03 AM
    Bypassing my previous question, I now wrote some Pulumi code to create a GCP project and a service account for that project:
    import * as gcp from "@pulumi/gcp";
    
    const scaProject = new gcp.organizations.Project("StaticCodeAnalysis",{
        projectId: 'static-code-analysis',
        name: 'Static Code Analysis'
    })
    
    const serviceAccountPulumiScaManagement = new gcp.serviceAccount.Account("ServiceAccountPulumiScaManagement", {
        accountId: "pulumiciscamgmt",
        displayName: "Pulumi CI/CD Static Code Analysis Management",
        project: scaProject.id
    });
    But here I get the error:
    Diagnostics:
      gcp:serviceAccount:Account (ServiceAccountPulumiScaManagement):
        error: Error creating service account: googleapi: got HTTP response code 404 with body: <!DOCTYPE html>
        <html lang=en>
          <meta charset=utf-8>
          <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
          <title>Error 404 (Not Found)!!1</title>
          <style>
            *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(<//www.google.com/images/errors/robot.png>) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(<//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png>) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(<//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png>) no-repeat 0% 0%/100% 100%;-moz-border-image:url(<//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png>) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(<//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png>) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}
          </style>
          <a href=<//www.google.com/>><span id=logo aria-label=Google></span></a>
          <p><b>404.</b> <ins>That's an error.</ins>
          <p>The requested URL <code>/v1/projects/projects/static-code-analysis/serviceAccounts?alt=json&prettyPrint=false</code> was not found on this server.  <ins>That's all we know.</ins>
     
      pulumi:pulumi:Stack (00-infra-global-production):
        error: update failed
    Is there something wrong with how the URL is constructed? Notice that there is twice the word
    projects
    init. I guess that’s one time too much.
    g
    • 2
    • 5
  • b

    better-actor-92669

    02/16/2020, 2:16 PM
    Hi. How do you create and assign roles in CloudSQL Postgre Instances? I found the pulumi-postgresql module, but there is no relation between it and https://github.com/pulumi/pulumi-gcp/blob/master/sdk/python/pulumi_gcp/sql/database_instance.py, as it is just a wrapper that connects to a host defined in the config. So my plan is to wait until an instance is created and then use this module to create databases and users within it. Nevertheless, I hope there is a better solution.
Powered by Linen
Title
b

better-actor-92669

02/16/2020, 2:16 PM
Hi. How do you create and assign roles in CloudSQL Postgre Instances? I found the pulumi-postgresql module, but there is no relation between it and https://github.com/pulumi/pulumi-gcp/blob/master/sdk/python/pulumi_gcp/sql/database_instance.py, as it is just a wrapper that connects to a host defined in the config. So my plan is to wait until an instance is created and then use this module to create databases and users within it. Nevertheless, I hope there is a better solution.
View count: 3