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

    chilly-hairdresser-56259

    05/22/2020, 9:05 PM
    Is anyone else out there having a rough time getting Pulumi to use aws Profiles? I have a shared credentials file in ~/.aws/credentials that has a default profile which has my access key and secret then I created another profile named sandbox which references a role_arn and source_profile of default. In the pulumi config I set aws:profile to use sandbox. However when I do a pulumi preview and write out the callidentity is still pointed to my main account.
    b
    b
    +3
    • 6
    • 29
  • b

    best-lifeguard-91445

    05/22/2020, 9:41 PM
    Is there a way to set the ECR repository name without the random suffix? deleteBeforeReplace isn't an available option, nor is 'name'.
    w
    r
    f
    • 4
    • 6
  • g

    great-byte-67992

    05/23/2020, 4:36 AM
    Has anyone seen the new gitlab 13 feature GitLab HTTP Terraform state backend. I’m interested if pulumi could implement a compatible state backend for it and any other terraform http state backend. https://about.gitlab.com/releases/2020/05/22/gitlab-13-0-released/#gitlab-http-terraform-state-backend
    b
    • 2
    • 3
  • w

    witty-spring-28765

    05/23/2020, 9:54 AM
    Hello All, I am trying to acheive the following. Please let me know if this is possible 1. Create a python docker using pulumi 2. Deploy this docker image on to an EC2 instance can this be done is the same script or is it better to use a different CI/CD for the docker build and a separate one for Infra build.
    b
    • 2
    • 13
  • a

    able-beard-29160

    05/23/2020, 11:43 AM
    Hi, folks! Can stacks be used to run different code paths (TypeScript in my case) or would I need different projects for that? Ideally I wouldn't have to query the stack name in my code and executed based on that, but if that's the only solution, I'd like to know.
    b
    • 2
    • 5
  • w

    wonderful-dog-9045

    05/23/2020, 11:48 AM
    is the nodejs sdk version always equal to the pulumi runtime version? i.e. npm @pulumi/pulumi@2.2.1 -> pulumi version v2.2.1 Or is it coincidental that the current sdk version number is the same as the current runtime version number?
    b
    • 2
    • 2
  • a

    able-beard-29160

    05/23/2020, 6:04 PM
    Does
    pulumi.StackReference
    work with anything else other than the Pulumi service? I'm not sure what to pass as a stack name to the constructor.
    m
    • 2
    • 6
  • g

    green-school-95910

    05/24/2020, 4:22 AM
    Hey Pulumi team! Where should I send suggestions regarding the console of the Pulumi service? It would be nice if the resource details page showed the URN of the resource. Just now we had a possible credential leak and had to regenerate that key using the
    --replace
    option and the only way I could find to get the urn of a resource without having to change the code was to inspect the state using
    pulumi stack export
    a
    • 2
    • 3
  • g

    green-school-95910

    05/24/2020, 4:32 AM
    Also, secondary suggestion: On the timeline tag of the update activities resources that are replaced could appear 2 times, one for when a new one is created and another for when the previous resource is deleted. It is strange how it appears today. The key needs to be replaced for the provider to change, but since it is only completely replaced after its dependency are updated it shows up after it, which can be confusing if someone needs check the operations at some point (auditing for example, it is not clear when the new resource was created).
  • a

    astonishing-gpu-37274

    05/24/2020, 7:36 AM
    I'm getting this error for any lambda I'm trying to create:
    error: Error creating Lambda function: ResourceConflictException: Function already exist: ****-8d56ff7
        {
          RespMetadata: {
            StatusCode: 409,
            RequestID: "a4e2508b-7d19-43cc-93db-e08b1f64914e"
          },
          Message_: "Function already exist: ***-8d56ff7",
          Type: "User"
        }
    I tried using --refresh, recreating the stack, switching to a different account. The lambda is actually created even when this error occur Looking at the AWS cloudtrail events, I see that CreateFunction is called twice, with a 2 min difference(the time it takes to create it). Using the latest pulumi version, anyone knows how to resolve? As a workaround I'm quickly deleting the lambda before the 2nd time it creates it, and that seems to make the pulumi update finish successfully
    f
    • 2
    • 6
  • b

    blue-businessperson-90950

    05/24/2020, 8:52 AM
    How is pulumi-azure related to the azurerm terraform provider?
  • b

    blue-businessperson-90950

    05/24/2020, 8:53 AM
    It seem that pulumi use the terraform provider under the hood. It's true?
    n
    • 2
    • 1
  • b

    blue-businessperson-90950

    05/24/2020, 8:54 AM
    If it's true, is there a plan to remove the dependency?
    n
    • 2
    • 6
  • a

    alert-restaurant-79151

    05/24/2020, 2:30 PM
    What would be required to implement a provider in a new language (not golang)?
    b
    b
    • 3
    • 4
  • b

    brainy-psychiatrist-41826

    05/24/2020, 5:37 PM
    using github actions, is there a way to run pulumi for a go project and not re-download the deps each time? i vendored the deps via
    go mod vendor
    , but the GH action always refetches the deps
    b
    • 2
    • 1
  • l

    limited-rainbow-51650

    05/25/2020, 10:06 AM
    The Github action is rebuilding grcp from scratch due to this:
    node-pre-gyp WARN Pre-built binaries not installable for grpc@1.24.2 and node@12.16.3 (node-v72 ABI, glibc) (falling back to source compile with node-gyp)
    What should I change to my environment for pre-built binaries to be picked up instead of the build from source? I’m currently running my job on
    ubuntu-latest
    s
    • 2
    • 1
  • l

    limited-rainbow-51650

    05/25/2020, 10:29 AM
    @broad-dog-22463 your latest change to the github action script https://github.com/pulumi/pulumi/commit/490da8e4d77bbb7c4f3f9b8198d34e1d6f2ff1a8 generates this in my output:
    /usr/bin/pulumi-action: line 103: [: missing `]'
    b
    • 2
    • 11
  • q

    quaint-portugal-34880

    05/25/2020, 6:35 PM
    I tried to implement the autotag function and put the function in a module to be able to reuse but I got this error message
    error: Running program '/PATH/aws/eks/network/pulumi' failed with an unhandled exception:
      Error: The root stack resource was referenced before it was initialized.
        at Object.registerStackTransformation (/PATH//pulumi/adfenix_generic/node_modules/@pulumi/pulumi/runtime/stack.js:211:15)
        at AdfenixGeneric.registerAutoTags (/Users/ulfmansson/RubymineProjects/infra/lib/pulumi/adfenix_generic/index.ts:86:24)
        at Object.<anonymous> (/PATH/aws/eks/network/pulumi/index.ts:14:17)
    The code in the module looks like this
    import * as pulumi from "@pulumi/pulumi";
    
    export function registerAutoTags(autoTags: Record<string, string>): void {
        pulumi.runtime.registerStackTransformation((args) => {
            if (AdfenixGeneric.isTaggable(args.type)) {
                args.props["tags"] = {...args.props["tags"], ...autoTags};
                return {props: args.props, opts: args.opts};
            }
            return undefined;
        });
    }
    My code:
    import {registerAutoTags} from "@mymodule/tags"
    registerAutoTags({
        "environment": environment
    });
    l
    • 2
    • 14
  • c

    chilly-crayon-19101

    05/25/2020, 9:12 PM
    Hi all, hopefully a real quick question I have successfully managed to get my Azure Function App deployed using C# and .net however I am struggling to find an easy way to list the host function keys for downstream process? I am sure I am missing something simple. Thanks 🙂
    var app = new FunctionApp("app", new FunctionAppArgs
            {
                Name = $"{config.FullName}",
                ResourceGroupName = resourceGroup.Name,
                AppServicePlanId = appServicePlan.Id,
                AppSettings =
                {
                    {"runtime", "dotnet"},
                    {"WEBSITE_RUN_FROM_PACKAGE", codeBlobUrl},
                    {"CvApiDataConnectionString", apiStorageAccount.PrimaryConnectionString},
                    {"GetBlobPath", "curriculumvitae/{id}.json"},
                    {"ContainerName", "curriculumvitae"}
                },
                StorageConnectionString = functionAppStorageAccount.PrimaryConnectionString,
                Version = "~3"
            });
    
            this.Endpoint = Output.Format($"https://{app.DefaultHostname}");
    k
    • 2
    • 9
  • f

    future-potato-71458

    05/25/2020, 9:18 PM
    I was wondering if there is a 2FA setting for the email auth?
  • b

    bitter-waitress-34819

    05/26/2020, 2:11 AM
    Hello !, I am new using the tool and I have doubts when following the tutorial, my first question is if it is possible to install kubectl on a k8s master node exclusively from a js pulumi file?
    c
    • 2
    • 1
  • p

    plain-tiger-79744

    05/26/2020, 9:18 AM
    Hi guys! Is there a way of sharing Configuration values (yaml) in Pulumi? Let's say we are 5 developers, where each developer has its own stack, but all share the same configuration like SqlUsername/SqlPassword, Scaling of an app service plan and so on. How do I achieve that?
    w
    • 2
    • 2
  • d

    dazzling-sundown-39670

    05/26/2020, 11:10 AM
    Hey. Pulumi seems really cool from reading about it a bit but I'm confused about the "open source" label, what's open source?
    b
    • 2
    • 2
  • l

    limited-carpenter-34991

    05/26/2020, 11:16 AM
    Hey there, i'm trying to use the micro-stack approach with the feature inter-stack-dependencies. To have one or more main infrastructure stacks like in the example aws-stackreference-architecture. But this example with its references only work with the pulumi service as the main state backend. In our project i have to use our own state backend like azure blob storage. How is it possible to config stack references in local or cloud state backend ?
    a
    • 2
    • 4
  • f

    future-magazine-24902

    05/26/2020, 12:42 PM
    I am trying to run DscConfiguration follwing the example provided in the doco but I am getting this error:
  • f

    future-magazine-24902

    05/26/2020, 12:42 PM
    ollowing the example in DscConfiguration, I am getting the error - azure:automation:DscConfiguration (IISDscConfig): error: automation.DscConfigurationClient#CreateOrUpdate: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned a n error. Status=400 Code="BadRequest" Message="The configuration name in the scr ipt must match the configuration name."
  • f

    future-magazine-24902

    05/26/2020, 12:43 PM
    The name and the script are the same
  • d

    dazzling-sundown-39670

    05/26/2020, 1:18 PM
    Error creating ElasticSearch domain: ValidationException: EBS storage must be selected for t2.small.elasticsearch
    Trying to fix this error but I can't really find anything in the docs on how to create one. Can someone point me in the right direction?
    b
    • 2
    • 3
  • l

    limited-carpenter-34991

    05/26/2020, 1:42 PM
    Is Pulumi "under the hood" terraform to deploy infrastructure ?
    b
    c
    k
    • 4
    • 5
  • a

    ambitious-father-68746

    05/26/2020, 3:29 PM
    Hi, I'm fairly new to Pulumi and I've started to build bits of our test infrastructure with it, using locally stored state. Unfortunately it seems that I've lost the state passphrase. What options do I have here? Is the whole state lost?
    g
    • 2
    • 2
Powered by Linen
Title
a

ambitious-father-68746

05/26/2020, 3:29 PM
Hi, I'm fairly new to Pulumi and I've started to build bits of our test infrastructure with it, using locally stored state. Unfortunately it seems that I've lost the state passphrase. What options do I have here? Is the whole state lost?
g

gentle-diamond-70147

05/26/2020, 5:20 PM
The state file itself will still be available in the Pulumi SaaS and other backend types. The entire state is not encrypted, only any values, inputs, outputs, etc that are marked as secret. Config secrets are not recoverable without the original passphrase. You can potentially migrate your state to a new stack (with new passphrase) by changing the secrets provider. Those steps are detailed at https://www.pulumi.com/docs/intro/concepts/config/#changing-the-secrets-provider-for-a-stack. You will need to adjust those steps as you cannot use
--show-secrets
without the passphrase. This will be a manual process, modifying your state file directly, so it might be easier/quicker to start over if this is not a critical stack.
a

ambitious-father-68746

05/26/2020, 5:24 PM
Thanks. It's not essential, I just need to reimport those few resources that I have created before.
👍 1
View count: 1