Pulumi Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 13: Line 13:
Without argument, logs into the Pulumi-managed [[Pulumi_Concepts#Backend|backend]].  Credentials are cached locally and can be viewed with <code>~/.pulumi/credentials.json</code>.
Without argument, logs into the Pulumi-managed [[Pulumi_Concepts#Backend|backend]].  Credentials are cached locally and can be viewed with <code>~/.pulumi/credentials.json</code>.


For a "https://" URL, the command line process will access the remote backend via REST.
State can be maintained in different places, as follows:
* For a "https://" URL, the command line process will access the remote backend via REST.
* For a "file://" URL, the state is managed locally.
* For a "s3://" URL, state is maintained in an S3 bucket.
* For a "gs://" URL, state is maintained in an GCP bucket.
* For a "azblob://" URL, state is maintained in an Azure blob.


For a "file://" URL, the state is managed locally.
==Login Options==
==Login Options==
===<tt>-c|--cloud-url</tt>===
===<tt>-c|--cloud-url</tt>===

Revision as of 04:05, 8 January 2022

External

Internal

Logout

pulumi logout

Login

pulumi login [--cloud-url https://something.example.com]

Without argument, logs into the Pulumi-managed backend. Credentials are cached locally and can be viewed with ~/.pulumi/credentials.json.

State can be maintained in different places, as follows:

  • For a "https://" URL, the command line process will access the remote backend via REST.
  • For a "file://" URL, the state is managed locally.
  • For a "s3://" URL, state is maintained in an S3 bucket.
  • For a "gs://" URL, state is maintained in an GCP bucket.
  • For a "azblob://" URL, state is maintained in an Azure blob.

Login Options

-c|--cloud-url

--local

--local is a shortcut for:

pulumi login file://~

Info

Dumps identity, backend name and URL, Open Directory groups, etc.

pulumi whoami --verbose

This reads ~/.pulumi/credentials.json.

Organization Info

pulumi org ls
pulumi org get <org-name>

Stack Operations

Pulumi Stacks

List Stacks

Display the list associated with the current project.

pulumi stack ls

Select a Stack

pulumi stack select

Display Stack Resources

pulumi stack

Display Stack Tags

https://www.pulumi.com/docs/reference/cli/pulumi_stack_tag_ls/
pulumi stack tag ls

Project Operations

New Project

Create a new project and stack from template.

pulumi new

Plugin Operations

List

pulumi plugin ls

Apply Infrastructure

pulumi up