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

    ripe-greece-78043

    07/18/2022, 11:22 AM
    When I install https://www.pulumi.com/blog/query-kubernetes/ I can’t any longer use
    new k8s.kustomize.Directory.
    It is strange behavior.
    🚨 1
    👍 1
    b
    • 2
    • 1
  • v

    victorious-dusk-75271

    07/18/2022, 1:31 PM
    pulumi does not save config in pulumi stack?

    https://puu.sh/JbIfj/2d4325c964.png▾

    e
    • 2
    • 3
  • b

    billowy-mouse-89284

    07/18/2022, 2:24 PM
    Hi team, can pulumi change default kube-scheduler configuration? I didn’t see any documentation about it. Specifically I’m looking for a way to change its scoringStrategy: https://kubernetes.io/docs/concepts/scheduling-eviction/resource-bin-packing/
    b
    • 2
    • 4
  • m

    millions-lunch-7967

    07/18/2022, 2:45 PM
    Hi Team, In pulumi how do I import all the GCS Buckets in a project ? As per the documentation, it looks like i can import only one bucket at a time. pulumi import gcp😒torage/bucket:Bucket image-store tf-test-project/image-store-bucket
    b
    • 2
    • 2
  • v

    victorious-dusk-75271

    07/18/2022, 2:59 PM
    i am getting this error in gcp cloud build (using docker builder then install nodejs) any idea what causing this?
    error: Running program '/workspace/infrastructure' failed with an unhandled exception:
    ReferenceError: globalThis is not defined
        at new Stack (/workspace/infrastructure/node_modules/@pulumi/runtime/stack.ts:66:9)
        at Object.runInPulumiStack (/workspace/infrastructure/node_modules/@pulumi/runtime/stack.ts:45:23)
        at Object.run (/workspace/infrastructure/node_modules/@pulumi/cmd/run/run.ts:373:20)
        at v8Hooks.isInitializedAsync.then (/workspace/infrastructure/node_modules/@pulumi/cmd/run/index.ts:160:57)
        at process._tickCallback (internal/process/next_tick.js:68:7)
        at Function.Module.runMain (internal/modules/cjs/loader.js:834:11)
        at startup (internal/bootstrap/node.js:283:19)
        at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
    b
    • 2
    • 4
  • p

    prehistoric-kite-30979

    07/18/2022, 3:58 PM
    Hi all, Has anyone seen the following issue before?
    ec:index:DeploymentTrafficFilterAssociation (hosted-tenant-cotiviti):
        error: post-step event returned an error: failed to save snapshot: json: unsupported value: NaN
    It appears as though something is causing the sanpshot to get corrupted which then means eveything else after this is failing to create.
    b
    • 2
    • 4
  • m

    millions-lunch-7967

    07/18/2022, 4:09 PM
    Hi all, another question on importing GCP Composer. when I do pulumi import gcp:composer/environment:Environment default projects/{{project}}/locations/{{region}}/environments/{{name}} Noticed that It doesn't import the API and other roles and permissions associated with the service account. Do I need to separately import the API ? I have enabled many API for this project - Google composer, google big query, cloud sql, compute engine and so on. My question is how do I import all the API's enabled for a project in one go ? Thanks
  • f

    fancy-spoon-7206

    07/18/2022, 5:18 PM
    Is there a simple way to export a slice of a struct?
    type subnet struct {
    		Id pulumi.StringOutput
    		Az string
    	}
    
    	publicSubnet := make([]subnet, 0, 1)
    	for index, az := range azs {
    		publicSubnet = append(publicSubnet, subnet{
    			Id: PublicSubnets.Index(<http://pulumi.Int|pulumi.Int>(index)),
    			Az: az,
    		})
    	}
    I would like to export publicSubnet, but that is not valid. The idea is to get an Outputs similar to
    {
      "publicSubnets": [
        {
          "id": "subnet-02d7930bd",
          "az": "us-east-2a"
        },
        {
          "id": "subnet-0a89e59bb",
          "az": "us-east-2b"
        },
        {
          "id": "subnet-04658194f",
          "az": "us-east-2c"
        }
      ],
      "privateSubnets": [
        {
          "id": "subnet-00a9f3a9d6",
          "az": "us-east-2a"
        },
        {
          "id": "subnet-026eed9351,
          "az": "us-east-2b"
        },
        {
          "id": "subnet-0bfabcc5f666637c1",
          "az": "us-east-2c"
        }
      ]
    }
    b
    • 2
    • 2
  • f

    fancy-spoon-7206

    07/18/2022, 5:18 PM
    Crossposting for more visibility.
  • m

    modern-evening-83482

    07/19/2022, 12:51 AM
    Hello Everyone, after importing a aws resource(subnet) into pulumi I would like to modify the properties. This leads to replacement. Is this a pulumi thing or an aws thing? I would like to change few properties on the resource...
    b
    • 2
    • 2
  • a

    agreeable-window-77899

    07/19/2022, 11:06 AM
    Hello all, I am creating an AWS fargate service using
    awsx.ecs.FargateService
    which automatically creates
    ecr
    repository for the container images. But while attempting to
    pulumi destroy
    the stack I get this error
    * ECR Repository (***-api-server-38-07d115e) not empty, consider using force_delete: RepositoryNotEmptyException: The repository with name '***-api-server-38-07d115e' in registry with id '***' cannot be deleted because it still contains images
    Is there a way to force delete the ecr repo which is auto-created by
    awsx
    ? Below is the way I'm creating the
    Fargate Service
    const fargateService = new awsx.ecs.FargateService(`tooling-app-${stackName}`, {
      name: `tooling-app-${stackName}`,
      cluster: fargateCluster,
      desiredCount: 1,
      forceNewDeployment: true,
      taskDefinitionArgs: {
        containers: {
          apolloServer: {
            image: awsx.ecs.Image.fromDockerBuild(
              `tooling-api-server-${stackName}`,
              {
                dockerfile: "../../api-server/Dockerfile",
                context: "../../api-server/",
              }
            ),
            portMappings: [albTargetGroupApiServer],
          },
       }
    }
    b
    • 2
    • 3
  • a

    ambitious-agent-35343

    07/19/2022, 11:22 AM
    Hi there, do we have a python example of AWS EKS + ArgoCD with Kustomize?
    b
    • 2
    • 15
  • g

    glamorous-afternoon-59004

    07/19/2022, 2:15 PM
    Happy to be here!
  • g

    glamorous-afternoon-59004

    07/19/2022, 2:16 PM
    How can I integrate GitLab with Pulumi. I do have an org user/identity in Pulumi however the same user is not linked to GitLab.
    b
    • 2
    • 4
  • v

    victorious-dusk-75271

    07/19/2022, 3:56 PM
    is there any example for 3 tier application architecture?
  • v

    victorious-dusk-75271

    07/19/2022, 6:28 PM
    is there anyway to set region for google cloud build? https://www.pulumi.com/registry/packages/gcp/api-docs/cloudbuild/trigger/
  • b

    breezy-greece-3236

    07/19/2022, 9:48 PM
    has anyone used Pulumi to create an Application Gateway in Azure? I am unable to do so, even with minimal configuration settings.
    b
    • 2
    • 2
  • b

    busy-island-31180

    07/19/2022, 11:00 PM
    how does the policy as code work with promises all over the place, there are going to be values that are not known at preview time
    b
    • 2
    • 4
  • b

    busy-island-31180

    07/19/2022, 11:00 PM
    does the policy as code aspects only apply to values known (at preview) time?
  • b

    busy-island-31180

    07/20/2022, 12:10 AM
    does pulumi have a way to detect circular promises?
    b
    • 2
    • 1
  • b

    brief-ram-15160

    07/20/2022, 9:16 AM
    hey all. Did anyone here managed to create a
    cloudfront
    security headers policy in Pulumi?
  • r

    rich-agency-75207

    07/20/2022, 9:16 AM
    HI Pulumi Community. Can anyone please help me with an issue I first posted on June 24th?
  • r

    rich-agency-75207

    07/20/2022, 9:18 AM
    It involves the use of a custom kubernetes provider and the Pulumi CLI failing after some (undetermined) time as the
    cluster
    |
    masterAuth
    |
    clusterCaCertificate
    value becomes opaque / inaccessible (to pulumi itself).
    • 1
    • 1
  • r

    rich-agency-75207

    07/20/2022, 9:18 AM
    In the interim period (measured in days) - everything works fine.
  • r

    rich-agency-75207

    07/20/2022, 9:20 AM
    Alternatively, does anyone know if there is an official technical support option via pulumi.com itself?
  • r

    red-football-97286

    07/20/2022, 9:34 AM
    Who here has a paid version of Pulumi? My company has just purchased pulumi and keen to know how others have adopted. For us, we are an AWS house; so how do you manage access keys/secrets?
    l
    • 2
    • 2
  • n

    nice-lizard-13594

    07/20/2022, 10:20 AM
    I have an issue over here. Somehow all HTTP requests made by the
    pulumi
    CLI fail with the following message (only if triggered by automation API):
    I0720 12:14:32.203370   19800 backend.go:420] found username for access token
    I0720 12:14:46.264798   19800 sink.go:155] defaultSink::Error(error: performing HTTP request: Get "<https://api.pulumi.com/api/stacks/><org>/<project>/<stack>": Not Found)
    error: performing HTTP request: Get "<https://api.pulumi.com/api/stacks/><org>/<project>/<stack>": Not Found
    My local Pulumi version is
    v3.36.0
    . The stacks exist and
    curl
    and “local”
    pulumi
    commands work flawlessly. Any ideas where this might come from?
    ✅ 1
    • 1
    • 1
  • e

    early-plastic-49211

    07/20/2022, 12:55 PM
    Is there a way to make sure a new recordset (Azure) resolves before creating another resource? Adding it to the DependsOn attribute does not work unfortunately.
  • h

    high-piano-3034

    07/20/2022, 2:30 PM
    Anyone have insight as to how to pass config values (or, well, any info) into stacks when using the automation API?
    stack, err := auto.UpsertStackInlineSource(ctx, fqsn, config.PulumiProjectName, istack.RunFunc)
    	if err != nil {
    		l.Fatal("Failed to create or select stack", zap.Error(err))
    	}
    
    	err = stack.SetConfig(ctx, "envType", auto.ConfigValue{
    		Value:  string(envType),
    		Secret: false,
    	})
    	if err != nil {
    		l.Fatal("Failed to set config", zap.Error(err))
    	}
    
    	err = stack.SetConfig(ctx, "stackName", auto.ConfigValue{
    		Value:  istack.Name,
    		Secret: false,
    	})
    	if err != nil {
    		l.Fatal("Failed to set config", zap.Error(err))
    	}
    I can seemingly set the config on the stack but the
    RunFunc
    doesn't get the values:
    stackName, ok := ctx.GetConfig("stackName")
    	fmt.Println(stackName, ok) // prints "", false
    	envType, ok := ctx.GetConfig("envType")
    	fmt.Println(envType, ok) // prints "", false
  • a

    aloof-dress-1001

    07/20/2022, 8:08 PM
    Hey everyone, whats the best practice method to share my pulumi code with others? If i'm pushing the main configuration files to some sort of SCM(github,gitlab, etc..), can someone just clone the repository and use pulumi up without creating a new pulumi project? or are we limited to stack regulations and we need to copy the code into the files inside our local project
    w
    p
    • 3
    • 3
Powered by Linen
Title
a

aloof-dress-1001

07/20/2022, 8:08 PM
Hey everyone, whats the best practice method to share my pulumi code with others? If i'm pushing the main configuration files to some sort of SCM(github,gitlab, etc..), can someone just clone the repository and use pulumi up without creating a new pulumi project? or are we limited to stack regulations and we need to copy the code into the files inside our local project
w

wonderful-portugal-96162

07/20/2022, 8:17 PM
I believe everything is based on the Token right? So unless you are committing the Token and/or Cloud platform token (which is probably a bad idea) the folks who clone your repo would need to provide their own.
a

aloof-dress-1001

07/20/2022, 8:31 PM
@wonderful-portugal-96162 Hi, Thanks for replying! i'm actually not talking about the Token side of things, but the dependecies that are needed when deploying a pulumi operation. let's say i'm cloning a repo that has some index.ts file and the other necessary files (btw, what are they?) with pulumi configuration - will pulumi up still work but will do "npm i" automatically? or the project needs to be deployed prior to cloning, with pulumi new?
p

powerful-rocket-20061

07/20/2022, 9:09 PM
If you want to allow others to reuse your code in a restrictive way , I think you need to use "pulumi automation API"
View count: 4