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
install
  • b

    bitter-oil-46081

    11/29/2017, 7:13 PM
    set the channel description: Troubleshoot problems installing Pulumi. Hopefully you never have to join this channel.
  • a

    able-tomato-34262

    06/29/2018, 8:41 AM
    Hello, I'm trying to use pulumi for the first time but cannot get to login using cli, I have this
    $ pulumi config
    We need your Pulumi account to identify you.
    Enter your access token from <https://app.pulumi.com/account>
        or hit <ENTER> to log in using your browser            : 
    error: resource temporarily unavailable
  • a

    able-tomato-34262

    06/29/2018, 8:41 AM
    Am I doing something wrong ? I already have an access token but cannot find out where to add it
  • a

    able-tomato-34262

    06/29/2018, 9:19 AM
    Ok, solved, added the token as environment variable
  • b

    bitter-oil-46081

    06/29/2018, 9:18 PM
    @able-tomato-34262 Glad to hear you solved it! You should have been able to paste the token into that prompt, but I realize it may not have been obvious that's what the tool was asking you to do. Did you try that and it didn't work or was it just not obvious that what you were supposed to do?
  • a

    able-tomato-34262

    07/02/2018, 7:53 AM
    Hello @bitter-oil-46081
  • a

    able-tomato-34262

    07/02/2018, 7:54 AM
    Actually, when I got this error, I didn't have any chance to paste anything as it exited in error directly
  • a

    able-tomato-34262

    07/02/2018, 7:54 AM
    But as a matter of facts, it's because I was executing pulumi inside a screen
  • a

    able-tomato-34262

    07/02/2018, 7:55 AM
    When I got out of my screen, I had no problem
  • a

    able-tomato-34262

    07/02/2018, 7:59 AM
    It's the same when I try
    pulumi update
    , I got this :
    $ AWS_PROFILE=pulumi pulumi update
    Previewing update of stack 'prod'
    Previewing changes:
    
         Type                 Name               Plan          Info
     *   pulumi:pulumi:Stack  first-pulumi-prod  no change     
     +   ├─ aws:s3:Bucket     my-bucket2         create        
     -   └─ aws:s3:Bucket     my-bucket          delete        
     
    info: 2 changes previewed:
        + 1 resource to create
        - 1 resource to delete
          1 resource unchanged
    
    Do you want to perform this update?
      yes
    > no
      details
    error: confirmation cancelled, not proceeding with the update: read /dev/stdin: resource temporarily unavailable
    As for the previous error, it exits directly with no possibility of choosing options
  • a

    able-tomato-34262

    07/02/2018, 8:00 AM
    I tried to set my TERM for the same value as when I'm outside a screen but same error
  • a

    able-tomato-34262

    07/02/2018, 8:01 AM
    Do you want me to create an issue ?
  • b

    bitter-oil-46081

    07/02/2018, 4:49 PM
    Yes. Please do, let me know what TERM ends up getting set in your screen by default.
  • b

    bitter-oil-46081

    07/02/2018, 4:52 PM
    You can pass
    --yes
    to pulumi update to prevent the prompt. In this case you may want to explicitly run a
    pulumi preview
    so you have a chance to see what is done. Really sorry you are having such problems. @able-tomato-34262.
  • a

    able-tomato-34262

    07/03/2018, 7:57 AM
    Well, I'm confused @bitter-oil-46081, I rebooted my laptop, created a new screen and now it's working fine...
    👍 1
  • a

    able-tomato-34262

    07/03/2018, 7:58 AM
    Even with the screen
    TERM
  • a

    able-tomato-34262

    07/03/2018, 8:00 AM
    So nothing to report here 😛
  • g

    green-london-79864

    09/26/2018, 11:33 AM
    Hello there! First time installing Pulumi, trying to do it inside a container (mainly for CI / headless use cases), here's my experience so far: - the PATH env isn't correctly set by the script (tried both
    alpine
    and
    ubuntu
    as base images) - ANY command I try to run (
    pulumi new
    , for example) requires a login - not a fan of that at all - on top of that, the redirect URL is a localhost one with a random port, so there's no way I can interactively login from within a container. - edit for last two observations - found out about
    pulumi login --local
    , big fan of that 🙂
  • g

    green-london-79864

    09/26/2018, 11:57 AM
    I would argue that the local login should be on by default
  • a

    adventurous-jordan-10043

    09/26/2018, 12:48 PM
    I don’t see local by default happening any time soon, pulumi is a product after all. But maybe in CI env something could be done.
  • w

    white-balloon-205

    09/26/2018, 1:31 PM
    @green-london-79864 Yep -
    pulumi login --local
    is the command to use to do local-only (which in particular means managing state file persistence and concurrency control yourself). We definitely want that option to be discoverable when needed - curious - where did you ultimately discover it? And where did you expect to see it? As @adventurous-jordan-10043 noted, we really want the default to be an experience that works great out of the box without need to worry about state file management - but we want the local option to be discoverable when needed.
  • w

    white-balloon-205

    09/26/2018, 1:33 PM
    the redirect URL is a localhost one with a random port, so there's no way I can interactively login from within a container.
    Note that you can set
    PULUMI_ACCESS_TOKEN
    env var to provide the login information without need for interactive login. See https://pulumi.io/reference/cli/pulumi_login.html for details.
    👍 1
  • w

    white-balloon-205

    09/26/2018, 1:35 PM
    the PATH env isn't correctly set by the script (tried both
    alpine
    and
    ubuntu
    as base images)
    We do attempt to write it to the
    PATH
    , so not sure why this is not working. We'll try to reproduce this and fix. FWIW - here's the implementation of the installer: https://github.com/pulumi/get.pulumi.com/blob/master/dist/install.sh#L116
  • g

    green-london-79864

    09/26/2018, 2:43 PM
    Hey, @white-balloon-205! Thanks a lot for the response here: - regarding the login, I expected a reference in the installing / getting started doc - but that's fine, maybe I just wasn't paying enough attention there, and I understand trying to get people as familiar as possible with the cloud offering. - the token environment variable should do the trick for my use case, thanks for pointing that out! - the PATH observation was by no means a showstopper, just a heads up for it. All in all, I really enjoyed getting started with this and managed to create Kubernetes objects in no time and I expect to go ahead and also try provisioning cloud services next. Will surely document the process and let you know of any other small things I encounter. Thanks for the support!
  • b

    brainy-cartoon-21391

    11/04/2018, 8:07 PM
    hi, i did curl -fsSL https://get.pulumi.com | sh and got curl: (60)
  • b

    brainy-cartoon-21391

    11/04/2018, 8:08 PM
    looked around and found curl 'k' option to ignore TLS; now I am getting "could not determine latest version of pulumi..."
  • b

    brainy-cartoon-21391

    11/04/2018, 8:08 PM
    it looks like script isn't able to connect...which might have something to do with my corp proxy
  • b

    brainy-cartoon-21391

    11/04/2018, 8:08 PM
    I am behind NTLM auth
  • b

    brainy-cartoon-21391

    11/04/2018, 8:09 PM
    any suggestions on how to get past this?
    s
    • 2
    • 17
  • c

    cuddly-barista-79466

    11/16/2018, 4:49 PM
    Trying to install the tf2pulumi following the README but i am getting an error from the first step
    go get <http://github.com/pulumi/tf2pulumi/|github.com/pulumi/tf2pulumi/>...
    “Impossible type assertion”
    w
    • 2
    • 10
Powered by Linen
Title
c

cuddly-barista-79466

11/16/2018, 4:49 PM
Trying to install the tf2pulumi following the README but i am getting an error from the first step
go get <http://github.com/pulumi/tf2pulumi/|github.com/pulumi/tf2pulumi/>...
“Impossible type assertion”
go/src/github.com/pulumi/tf2pulumi/il/builtin_providers.go:31:29: impossible type assertion: *schema.Provider does not implement “github.com/terraform-providers/terraform-provider-archive/vendor/github.com/hashicorp/terraform/terraform”.ResourceProvider (wrong type for Apply method) have Apply(*“github.com/hashicorp/terraform/terraform”.InstanceInfo, *“github.com/hashicorp/terraform/terraform”.InstanceState, *“github.com/hashicorp/terraform/terraform”.InstanceDiff) (*“github.com/hashicorp/terraform/terraform”.InstanceState, error) want Apply(*“github.com/terraform-providers/terraform-provider-archive/vendor/github.com/hashicorp/terraform/terraform”.InstanceInfo, *“github.com/terraform-providers/terraform-provider-archive/vendor/github.com/hashicorp/terraform/terraform”.InstanceState, *“github.com/terraform-providers/terraform-provider-archive/vendor/github.com/hashicorp/terraform/terraform”.InstanceDiff) (*“github.com/terraform-providers/terraform-provider-archive/vendor/github.com/hashicorp/terraform/terraform”.InstanceState, error) go/src/github.com/pulumi/tf2pulumi/il/builtin_providers.go:41:26: impossible type assertion: *schema.Provider does not implement “github.com/terraform-providers/terraform-provider-http/vendor/github.com/hashicorp/terraform/terraform”.ResourceProvider (wrong type for Apply method) have Apply(*“github.com/hashicorp/terraform/terraform”.InstanceInfo, *“github.com/hashicorp/terraform/terraform”.InstanceState, *“github.com/hashicorp/terraform/terraform”.InstanceDiff) (*“github.com/hashicorp/terraform/terraform”.InstanceState, error) want Apply(*“github.com/terraform-providers/terraform-provider-http/vendor/github.com/hashicorp/terraform/terraform”.InstanceInfo, *“github.com/terraform-providers/terraform-provider-http/vendor/github.com/hashicorp/terraform/terraform”.InstanceState, *“github.com/terraform-providers/terraform-provider-http/vendor/github.com/hashicorp/terraform/terraform”.InstanceDiff) (*“github.com/terraform-providers/terraform-provider-http/vendor/github.com/hashicorp/terraform/terraform”.InstanceState, error)
w

white-balloon-205

11/16/2018, 4:54 PM
Just tried myself, and it worked for me. Are you sure you did the
dep ensure
step and it succeeded? Do you have a
vendor
folder inside
tf2pulumi
? The above error suggests that vendored dependencies are not being found.
c

cuddly-barista-79466

11/16/2018, 4:56 PM
It seems to build and install but I wasn’t sure those vendor related providers were needed.
And there is a vendor folder in tf2pulumi
cloud.google.com github.com golang.org gopkg.in contrib.go.opencensus.io go.opencensus.io google.golang.org
w

white-balloon-205

11/16/2018, 4:59 PM
I see. Is it working for you now? It may be that the
go get
in the first step is trying to build? If so that won't work and we'll need to suggest git clone instead. Definitely would like to offer binaries/installers here as well.
c

cuddly-barista-79466

11/16/2018, 5:01 PM
Coming back to this from yesterday, i think I ended up going that route with git clone
Yeah. the go get is not getting vendors/dependencies
thanks for clarifying
w

white-balloon-205

11/16/2018, 5:05 PM
Ahh - looks like we should pass
-d
to the
go get
command to ensure it doesn't try to build (which won't work as you point out here). Will fix.
👍 1
View count: 1