Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-3740

Command to show infra spawned by cf-remote

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: N/A
    • Component/s: cf-remote
    • Labels:
      None
    • Story Points:
      5

      Description

      It would be nice if there were a command to show the spawned infrastructure.

      Currently cf-remote has the capability to spawn new infrastructure while assigning names and roles.

      ╰─➤  cf-remote spawn -h                 
      usage: cf-remote spawn [-h] [--list-platforms] [--init-config] [--platform PLATFORM] [--count COUNT] [--role {hub,hubs,client,clients}] [--name NAME] [--append] [--aws] [--gcp]
                             [--size SIZE] [--network NETWORK] [--no-public-ip]
      
      optional arguments:
        -h, --help            show this help message and exit
        --list-platforms      List supported platforms
        --init-config         Initialize configuration file for spawn functionality
        --platform PLATFORM   Platform to use
        --count COUNT         How many hosts to spawn
        --role {hub,hubs,client,clients}
                              Role of the hosts
        --name NAME           Name of the group of hosts (can be used in other commands)
        --append              Append the new VMs to a pre-existing group
        --aws                 Spawn VMs in AWS (default)
        --gcp                 Spawn VMs in GCP
        --size SIZE           Size/type of the instances
        --network NETWORK     network/subnet to assign the VMs to (GCP only)
        --no-public-ip        No public IP needed (GCP only; WARNING: The VMs will only be accessible from some other VM in the same cloud/network!)
      

      However there is not a way to to see what is currently spawned. To see what is currently spawned, you can cat ~/.cfengine/cf-remote/cloud_state.json but that is not as friendly as something like cf-remote spawn --show or cf-remote spawn --list.

        Attachments

          Activity

            People

            Assignee:
            Aleksei Aleksei Shpakovskii
            Reporter:
            a10042 Nick Anderson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: