The present disclosure relates generally to creating and managing cloud infrastructures, and more specifically, intelligently integrating one or more cloud infrastructure tools for creating and managing cloud infrastructures.
Cloud services are generally made available to customers on demand (e.g., via a subscription) using infrastructures provided by cloud service providers (e.g., Azure, AWS, Google Cloud, etc.). Different types of cloud services including Software-as-a-Service (SaaS), Platform-as-a-Service (PaaS), Infrastructure-as-a-Service (IaaS), and the like are available to customers.
Cloud service providers may provide a wide range of services that enable the customers to deploy and manage various workloads (e.g., virtual machines, containers, applications). Unfortunately, customers of these cloud service providers often spend considerable amounts of time trying to create and manage cloud infrastructures across different platforms to support their business needs. While certain cloud infrastructure tools (e.g., Terraform®) provide a mechanism to automate creation and management of cloud infrastructures across multiple cloud service providers, a customer’s primary cloud management platform may not support such infrastructure tools. Accordingly, cloud management platforms supporting tools that manage cloud and on-premise infrastructures are desirable.
This disclosure describes mechanisms for providing portability of a cloud infrastructure tool across multiple cloud platforms.
A computer implemented method is performed on a server associated with a cloud management platform, and includes the following: receiving a configuration file associated with a cloud infrastructure tool describing a desired state of a cloud infrastructure for a one or more cloud service providers; creating a hybrid cloud template by incorporating content from the configuration file into a native cloud template within the cloud management platform; determining whether one or more updates for achieving the desired state of the cloud infrastructure based on the hybrid cloud template are valid; upon determining that the one or more updates for achieving the desired state of the cloud infrastructure are valid: creating the cloud infrastructure to achieve the desired state of the cloud infrastructure in accordance with the hybrid cloud template using the cloud infrastructure tool; and storing state information of the cloud infrastructure after the cloud infrastructure is created.
A non-transitory computer-readable storage medium that stores instructions configured to be executed by one or more processors of a computing device associated with a cloud management platform is disclosed. The non-transitory computer-readable storage medium when executed by the one or more processors cause the computing device to carry out steps that include: receiving a configuration file associated with a cloud infrastructure tool describing a desired state of a cloud infrastructure for a one or more cloud service providers; creating a hybrid cloud template by incorporating content from the configuration file into a native cloud template within the cloud management platform; determining whether one or more updates for achieving the desired state of the cloud infrastructure based on the hybrid cloud template are valid; upon determining that the one or more updates for achieving the desired state of the cloud infrastructure are valid: creating the cloud infrastructure to achieve the desired state of the cloud infrastructure in accordance with the hybrid cloud template using the cloud infrastructure tool; and storing state information of the cloud infrastructure after the cloud infrastructure is created.
A server associated with a first cloud management platform is disclosed and includes one or more processors; persistent storage, comprising an encrypted region; non-persistent storage; and memory storing one or more programs configured to be executed by the one or more processors, the one or more programs including instructions for: receiving a configuration file associated with a cloud infrastructure tool describing a desired state of a cloud infrastructure for a one or more cloud service providers; creating a hybrid cloud template by incorporating content from the configuration file into a native cloud template within the cloud management platform; determining whether one or more updates for achieving the desired state of the cloud infrastructure based on the hybrid cloud template are valid; upon determining that the one or more updates for achieving the desired state of the cloud infrastructure are valid: creating the cloud infrastructure to achieve the desired state of the cloud infrastructure in accordance with the hybrid cloud template using the cloud infrastructure tool; and storing state information of the cloud infrastructure after the cloud infrastructure is created.
Other aspects and advantages of the invention will become apparent from the following detailed description taken in conjunction with the accompanying drawings, which illustrate, by way of example, the principles of the described embodiments.
The disclosure will be readily understood by the following detailed description in conjunction with the accompanying drawings, wherein like reference numerals designate like structural elements.
Certain details are set forth below to provide a sufficient understanding of various embodiments of the invention. However, it will be clear to one skilled in the art that embodiments of the invention may be practiced without one or more of these particular details. Moreover, the particular embodiments of the present invention described herein are provided by way of example and should not be used to limit the scope of the invention to these particular embodiments. In other instances, hardware components, network architectures, and/or software operations have not been shown in detail in order to avoid unnecessarily obscuring the invention.
The demand for cloud-based services continues to increase rapidly. Typically, customers may use multiple cloud services in combination to support their enterprise or business. By subscribing to cloud services, the customers can utilize a set of resources without having to purchase separate hardware and software resources to support their business needs. A cloud infrastructure provided by a cloud service provider generally includes high-performance compute, memory and network resources or components.
Typically, servers and systems that make up the cloud service providers’ cloud infrastructure are separate from customer’s own on-premise servers and systems. Customers of cloud services may use multiple services provided by different cloud service providers for their enterprise. Accordingly, the customers may be required to manage their cloud-based workloads separately in similar manner as they manage their on-premise workloads. Deploying and managing cloud infrastructures to utilize resources from multiple cloud service providers is time consuming and inconvenient to the customers.
Certain cloud infrastructure tools (e.g., Terraform®, Ansible®, and Pulumi®) provide a mechanism to automate managing of cloud infrastructures for multiple cloud service providers. However, a customer’s on-premise platform or a primary cloud management platform used by the customer may not support such infrastructure tools. Thus, the customer’s primary cloud management platform may require additional mechanisms to understand and accommodate processing involving the cloud infrastructure tools for creating cloud infrastructures. Specifically, the cloud management platform may be required to understand configuration files that define desired states of cloud infrastructures, creating and validating plans for achieving the desired states of cloud infrastructures using a cloud infrastructure tool, executing plans to create the cloud infrastructures, and storing states of the cloud infrastructures in order to allow updates to the created cloud infrastructures for the one or more cloud service providers.
These and other embodiments are discussed below with reference to
In some examples, the cloud infrastructure environment 120 may include cloud management platform 122, an infrastructure tool 124, and a container orchestration platform 128. The cloud computing system 100 may further include cloud service providers 126, which may interact with the infrastructure tool 124. The cloud computing system 100 can further include resource environment 130 that includes one or more cloud resources such as cloud resource 132, cloud resource 134, and cloud resource N, as shown in
In some examples, a client application 102 (or 104) within the client environment 110 may be a web application (e.g., an email application, a file storage application, etc.). The client application 102 (or 104) may utilize cloud resources (e.g., 132) for data processing or storage (or other tasks) while executing the client application 102. The client application (102 or 104) may further interact with components within cloud infrastructure environment 120 over network 112.
In some examples, as shown in
In the above examples, the cloud management platform 122 may use the cloud infrastructure tool 124 for creating, starting, stopping, and/or managing various resources such as a cloud resource 132 (or 134). Specifically, the cloud management platform 122 may use the container orchestration platform 128 (e.g., Kubernetes®, Red Hat OpenShift®, and the like) to integrate cloud infrastructure tool 124 for managing the resources. The container orchestration platform 128 can be configured to manage one or more container clusters that automatically maintain deployment, scaling, and management of allocated cloud resources (e.g., 132). The cloud management platform 122 may use processes (e.g., jobs) over the container orchestration platform 128 to manage cloud resources via the cloud infrastructure tool 124. Specifically, the cloud management platform 122 may interact with the container orchestration platform 128 which further uses container’s cluster to run the cloud infrastructure tool 124 (e.g., Terraform CLI) to create a cloud infrastructure involving cloud resources.
In the above examples, the cloud resources (e.g., 132 and 134) may be any of a processor, memory, network and/or storage related resources. Cloud resources may be any resources provided by cloud service providers (e.g., AWS, Azure, GCP, and the like). In some examples, the cloud resource 132 may include a host hardware, one or more virtual machines (VMs) running on the host hardware, and a processor for managing the virtual machines within the resource 132. Each of the VMs can be configured to run an operating system that allows for multiple applications or services to run within the VM. The Host hardware may include one or more processors, memory, storage resources, I/O ports and the like to support operation of VMs running on the host hardware. The host hardware may further support a virtualization software that facilitates the creation of VMs.
In above examples, the container orchestration platform 128 may further control the VMs associated with the cloud resource (e.g., 132 or 134). The platform 128 may control or manage VMs within one or more containers to manage client applications (e.g., 102) running on the VMs. Specifically, the platform 128 may be able to auto-scale across different hosts or clusters to support applications running on the VMs. In some examples, the container orchestration platform 128 may be a job service that creates one or more pods or containers (e.g., Kubernetes® POD) to manage cloud resources via the cloud infrastructure tool 124 (e.g., Terraform® Command Line Interface).
In some examples, a cloud resource may be a native cloud resource or non-native cloud resource. The native resource is backed by a cloud management platform 122 provider while the non-native cloud resource is backed by the cloud infrastructure tool 124. In some examples, the platform 128 may also manage a non-cloud resource 142 (within non-cloud resource environment 140. The non-cloud resource may be a configuration for an web application or a customized resources needed for a client application.
Cloud management platform 122 can also include a graphical editor that allows a user to make updates and changes to any of cloud templates 204. Changes to cloud templates 204 can be saved in native or non-native formats depending on factors, such as resource and provider types. For example, it can be beneficial to save resource mappings in a non-native format, when the connection to the resource is most efficiently performed by leveraging an infrastructure tool 124.
In some examples, the processes, as shown in
In some examples, in step 301, the cloud management platform receives a configuration file describing the cloud infrastructure required for one or more client applications. The cloud management platform may parse the configuration file to determine a desired state of a cloud infrastructure for one or more client applications. In some examples, the configuration file may be scripted using HCL syntax or a markup language, such as YAML, XML, JASON, and the like. In some examples, the cloud management platform may recognize the configuration file based on its extension. For example, upon receiving a configuration file with extension “.tf” the cloud management platform may determine that the file includes a desired state of a cloud infrastructure to be created using Terraform® commands.
In some examples, in step 302, the cloud management platform (or a processor within the cloud management platform) may prepare to create the desired state of the cloud infrastructure. Specifically, the cloud management platform may identify one or more resources, resource providers, and one or more plugins required to create the cloud infrastructure. In some examples, a resource may be a virtual machine, disk, load balancer, or other type of processing, storage or network related resource. In some examples, a resource provider may be a cloud service provider such as Azure, AWS, Google cloud, etc. In some examples, the one or more plugins may help to interpret the requested cloud infrastructure within the configuration file. In some examples, in addition to the plugins, the cloud management platform may identify any additional inputs such as libraries or APIs needed for creating the desired state of the cloud infrastructure. In some examples, the cloud management platform may include a native parser that understands cloud infrastructure tool syntax (e.g., Terraform HCL syntax). To support a different configuration format, a different parser plugin may be retrieved.
In the above examples, after identifying resource providers required for creating the desired state of the cloud infrastructure, the cloud management platform may access the resource providers. In some examples, the cloud management platform may verify cloud accounts associated with the identified resources and resource providers. The cloud management platform may also verify whether references to resources within the configuration file are valid. Additionally, the cloud management platform may also download libraries, plugins, and/or APIs required for understanding schema associated with a desired state of cloud infrastructure. In some examples, the cloud management platform may download a library required to understand the configuration file. In some examples, the cloud management platform (or processor associated within the cloud management platform) may identify and map cloud zones or regions associated with cloud accounts referenced within the configuration file.
In some examples, one or more libraries or plugins required for parsing the configuration file and identifying all the resources, resource providers, and/or inputs may be downloaded or pre-configured within the cloud management platform. Specifically, one or more libraries may be used to parse the configuration file and convert the configuration file to a cloud template (or a blueprint) showing one or more resources, resource providers, and plugins required for creating a cloud infrastructure.
In some examples, the cloud management platform may further execute initialization and plan commands under step 310 that allow a configuration specified in a cloud template to be previewed prior to implementing changes to achieve the desired state of the cloud infrastructure. Specifically, the cloud management platform may use the container orchestration platform 128 deployed over the cloud management platform to perform initialization and execution of the plan. In step 312, the cloud management platform may create a job or task over a container cluster (within orchestration platform 128) within the cloud management platform to execute the plan command. In step 314, the cloud management platform may upload content or template associated with the configuration file to the job.
In step 316, the cloud management platform may instruct a job or task within a container cluster associated with the container orchestration platform 128 to execute an initialization command. The initialization command may initialize the resources, plugins, and other data associated with one or more identified resources in step 302. In some examples, the initialization command may initialize a working directory that contains the cloud template that contains at least a portion of the configuration file. The execution of the initialization command may perform several tasks including downloading and installing cloud service provider plugins. In step 316, the job within the container cluster may perform the initialization command over a command line interface (CLI) associated with the cloud infrastructure tool.
In some examples, in step 316, the cloud management platform may instruct the container cluster’s job or task to further execute a plan command. The plan command may be executed to test out the requested configurations (within the cloud template) under the plan. This command may provide a summary of updates required involving one or more resources to achieve the desired state. In some examples, the command may compare the desired state of the cloud infrastructure requested within the cloud template with present cloud infrastructure and provide a summary of the changes required to achieve the desired state. Specifically, the plan may show the user preview about what resources will be changed using CRUD (create, read, update, and delete operations) based on the cloud template. The plan command may not change the actual cloud infrastructure.
In step 318, the container cluster job or task may collect logs as initialization and planning are executed over CLI. The logs may then be transferred to the cloud management platform. Further, in step 320, the cloud management platform may download the plan upon execution. Once the plan is downloaded, the job may be deleted or destroyed in step 320. In some examples, the container cluster job or task may run a predefined command to save the plan to a file as an artifact within the cloud management platform which can be then used for approval from a user or administrator. Accordingly, as a result of performing steps 312, 314, 316, 318, and 320 under plan phase 310, the cloud management platform may receive and store the plan showing a summary of the changes required to achieve the desired state.
In some examples, after the plan is stored, the cloud management platform may apply native governance and policies to the resources in step 330. In some examples, the native policies may determine whether the user or an administrator requesting the desired state of cloud infrastructure are authorized. Similarly, different policies and predefined rules may be enforced to the saved plan in order to validate the plan.
In some examples, based on the downloaded plan, external governance associated with the resources may be plugged to the cloud management platform. Accordingly, governance and policies specific to the cloud infrastructure tool may also be enforced by the cloud management platform. The customer may add or plugin additional governance using the cloud management platform workflows or functions. In some examples, after a plan phase is executed in 310, an event broker subscription (EBS) event is published, where the EBS event includes the plan information. The published EBS event may provide preview of what cloud resources will be deployed with exact configuration when the plan is executed. In some examples, the user may review the published plan information to understand which cloud resources will be created in which cloud zones and determine if certain cloud zones are restricted for only certain types of resources which may further impact the cost of the deployment. In addition, the user may review the plan information to compute a total cost for the deployment of the cloud resources.
A user may subscribe to the EBS event using the cloud management platform workflows or functions. In the above examples, as part of governance, the EBS event may be used to validate or approve the plan that is part of an EBS event payload. For example, a user (or an administrator of the cloud management platform) may approve or reject a deployment of a virtual machine (VM) based on the published plan information. Upon applying the cloud management platform specific native policies over one or more requested resources under the plan, the cloud management platform may determine whether the plan is valid for deployment. In some examples, upon receiving a plan rejection from the user, the steps such as applying policies and executing the plan (e.g., steps 330-370 of
In step 340, the cloud management platform may further present the plan in the form of the template to the user or cloud management platform administrator for validation. Alternatively, the cloud management platform may automatically determine whether one or more resources requested under the plan is valid based on predetermined acceptable resources for the cloud management platform. In some examples, in step 340, a user may approve the plan based on the one or more resources requested under the plan. Alternatively, the cloud management platform may determine that the plan is valid. For example, if the size of storage requested by the user as part of the plan is within a predetermined threshold for the memory storage, then the cloud management platform may determine that the storage request under the plan is valid, and therefore, the plan is valid and approved for deployment.
In step 350, the cloud management platform may further perform a series of sub-steps (352, 354, 356, 358, and 360) to create the cloud infrastructure in accordance with the downloaded plan, under execute phase 350. Specifically, the cloud management platform may use a container orchestration platform deployed over cloud management platform to perform an apply command to deploy the plan downloaded under step 320. In step 352, the cloud management platform may create a job or task over the container orchestration platform to execute the plan command over the cloud management platform. In step 354, the cloud management platform may upload content (or plan) that was validated under step 340.
In some examples, in step 356, the cloud management platform may instruct the job or task to further execute an apply command. The job or task may execute the apply command over command line interface (CLI) associated with the cloud infrastructure tool. The apply command may be responsible for creating the infrastructure or making actual changes to an already established cloud infrastructure. To execute the apply command, the Kubernetes job or task may pass the previously generated plan to the CLI. During the execution of the apply command, all changes documented in the plan are set in motion. In some examples, a configuration may be passed to the CLI along with the apply command if the plan does not exist. In such cases, a plan may be generated with the apply command first and then executed upon approval from a user.
In step 358, the job or task running on the container orchestration platform may collect logs as the apply command is executed over CLI. The logs may then be transferred to the cloud management platform. Further, in step 360, the cloud management platform may require the job to download the state upon execution to the cloud management platform. Once the state is downloaded, the job may be deleted in step 360.
In step 370, the resources based on the state of the cloud infrastructure may be published for the user to verify and monitor. In some instances, these resources may be mapped to native cloud management platform resources. Accordingly, the cloud management platform can manage these resources in a similar manner as it manages the cloud management platform native resources.
In some examples, upon creation of cloud infrastructure, as suggested in steps described in
In the above examples, the cloud management platform (e.g., 122) may parse through the state file (downloaded in step 360 of
In some examples, the cloud management platform (e.g., 122) may display a topology of the cloud infrastructure based on the state information (from the state file downloaded in step 360) and the cloud template (created in step 302), as shown in topology 410 of
In some examples, as shown in
In some examples, each of the child components (414, 416, 418, 420) presenting the cloud resource may show additional detail about the cloud resource such as a resource name, a resource type, resource index, and other attributes of the child component. In the above examples, all of the cloud resources created in response to deploying the cloud template (under execution phase 350) are presented as child components within the topology 410. The cloud resources are infrastructure objects or components created to support the cloud infrastructure. Each of the cloud resources may be a processor, memory, network or storage related component for supporting one or more client applications using the cloud infrastructure. In some examples, the cloud resource may be an instance (e.g., aws_instance_web 416) of the processor, memory, network and/or storage related component or service. For example, aws_instance_web 416 may be associated with an instance of a virtual machine providing compute capacity to the one or more applications using the cloud infrastructure. In some examples, state information with one or more cloud resources may be displayed along with identification of the cloud resources (presented as child components within the topology).
In some examples, the topology 410 may further display whether the cloud resources that are presented as child components (e.g., 414, 416, 418) within topology 410 were discovered during the execution phase 350 based on the state information. Specifically, if a cloud resource 414 was discovered then the cloud resource 414 may show an indication or a checkmark 415 within the topology 410. In addition, if a cloud resource is discovered during execution phase 350 then the cloud management platform may map the cloud resource to its native resource and enable a user to manage the cloud resource using steps as discussed in the
In some examples, upon selecting a discovered cloud resource (e.g., a child component 416) within the topology 410, the display area 420 may provide additional information about the cloud resource. The additional information may include name of the resource, status of the resource, account associated with the resource, and other information as shown in display area 430 of the
In some examples, if a cloud resource is not discovered during the execution phase 350 (based on the state file), the topology 410 may not show a checkmark or an indication over the child component showing the cloud resource. For example, the cloud resource 418 (“Component_NotDz”) was not discovered during the execution phase according to the state file. As a result, no checkmark or indication is shown for the cloud resource 418. For an undiscovered cloud resource, graphical user interface may allow a user to define the undiscovered resource and create customized actions for the resource.
In the above examples, the cloud management platform may periodically request a Command Line Interface (CLI) associated with the cloud infrastructure tool over the orchestration platform (or coiner clusters) to get updated state information for the one or more resources within the cloud infrastructure. Specifically, the cloud management platform may request to execute a read command over CLI to get state information for the one or more cloud resources. Upon execution of the read command, the cloud management platform may receive a new state file that includes the latest status information for the cloud resources. Accordingly, the topology 410 may be updated based on the latest status information for the cloud resources. In some examples, the cloud management platform may determine topology 410 based on the plan after the plan is executed in plan phase 350, as shown in
In the above examples, the cloud management platform (e.g., 122) may correlate the one or more resources with native resources associated with the cloud management platform in order to present resources to the user and manage the resources using the native format of the cloud management platform.
In some examples, as described in
In some examples, upon determining that a cloud resource (e.g., 414 or 416) was discovered, the cloud management platform may determine a type of the cloud resource. Each resource may be associated with a single resource type, which determines a type of infrastructure object or component it supports within the cloud infrastructure. The resource type may be defined and implemented by the cloud service provider (e.g., AWS, Azure, etc.). The cloud management platform may obtain one or more plugins or Application Programming Interfaces (APIs) to understand the one or more resource types within the state file. For example, a resource type for an AWS resource may be an Amazon EC2 (Elastic Compute Cloud) instance which may be an instance of a web service that provides compute capacity to one or more applications using the cloud infrastructure.
In some examples, for each one of the discovered resources (e.g., 414, 416) or non-native cloud resources, the cloud management platform may identify a logical resource within the cloud management platform based on the type of the cloud resource. Specifically, after determining the resource type of the cloud resources, the cloud management platform may identify a native resource associated with the cloud management platform that is of similar type. In some examples, the cloud management platform may include a set of native resources or on-premise resources. The native resource may be an instance of the processor, memory, network and/or storage related component within the cloud management platform. In some examples, the cloud management platform may include a list of types and properties associated with the native resources. This information may be used to map the non-native resources to the native resources. For example, an identification or a resource name (e.g., ARN) of a native resource (e.g., a virtual machine) may be mapped to the non-native resource (e.g., 414) of the same type.
In the above examples, upon identifying a native resource for the cloud resource, the cloud management platform may map an identification of the native resource to the cloud resource. The cloud management platform may store the mapping of each of the cloud resources to its corresponding native resource identified by the cloud management platform. The mapping of the cloud resources to the native resources may allow the cloud management platform to manage the cloud resources as it would manage the native resources. In some examples, each of the cloud resources and its corresponding native resource within the cloud management platform may be assigned the same identification, in accordance with the mapping.
In some examples, the actions tab 440 may provide a list of actions in a native format to manage a life cycle of a cloud resource (e.g., 416) after the resource is mapped to the native resource. As shown in
In the above examples, the cloud management platform may direct the cloud infrastructure tool associated with the cloud template to perform the one or more actions selected by the user within the actions tab 440. The cloud management platform may delegate a request for the selected action to a CLI command associated with the cloud infrastructure tool to perform requested changes by the user. Specifically, the cloud management platform may create a job or task over a container cluster to submit a request to the CLI to update the cloud resource in accordance with the selected action from the user.
In some examples, the cloud management platform may also provide a list of actions (e.g., 440) for undiscovered resources. Specifically, for undiscovered resources (e.g., 418), the cloud management platform may allow a user to configure one or more customized actions for managing the resource. The cloud management platform may allow the user to map a workflow or a set of Action Based Extensibility (ABX) actions for managing the undiscovered resources. Accordingly, for the undiscovered resources, the cloud management platform may display one or more customized actions in the actions tab 440. If the user selects a customized action within the actions tab 440, the management platform may simply invoke the user defined workflow or the set of ABX actions for the customized action.
In some examples, an example cloud template for deploying multiple non-native and native resources using a cloud integration tool (e.g., Terraform) is shown below. inputs:
As shown in the above example, within the cloud template (e.g., template2), multiple non-native cloud resources (e.g., terraform_1 460) may be parametered and mapped as variables of the cloud infrastructure tool (e.g., Cloud. Terraform. Configuration). The variables may be further mapped as an input to the cloud template. Accordingly, while deploying the cloud template (e.g., during execute phase 350), a user can provide a value for the variable (e.g., instance type shown in above example template) which may be further sent as an input while executing the cloud template (e.g., during execute phase 350) to achieve a desired state of cloud infrastructure. In addition, the native cloud resources (e.g., cloud_machine_1 458) may depend on non-native cloud resources (e.g., terraform_1 460 and terraform_2 466) as shown in the above template example.
In some examples and as illustrated, the topology 456 show non-native cloud resources (terraform_1 460 and terraform_2 466) as parent components. Within the parent components, the topology 456 may show the one or more instances of the non-native cloud resource as child components (e.g., 462, 464, 468, and 470), as shown in
In some examples, as shown in
In some examples, the topology 456 may further show relationship of the native resources, non-native cloud resources and one or more cloud templates associated with the non-native cloud resources. Further, in the above example, both non-native cloud resources (terraform_1 460 and terraform_2 466) are associated with template 2. In the topology 456, the reference to template 2 is provided as a letter two in a circle in the display area next to the label for the non-native cloud resource terraform_1 460. The topology 456 may further display deployed native resources (e.g., 458) associated with the cloud infrastructure. In the above example, as shown in
In the above examples, upon selecting a native resource 458 within the topology 456, the display area 474 may provide additional information about the native resource. The additional information may include name of the resource, status of the resource, account associated with the resource, and other information as shown in display area 474 of the
In the above examples, the display area 476 may provide additional detail about the non-native cloud resource (e.g., terraform_1 460) and a cloud integration tool associated with the resource. The additional detail may include an identification of the non-native cloud resource, version of the cloud integration tool associated with the resource, state information about the resource, and other information as shown in display area 476 of the
In the above examples, the non-native cloud resources are infrastructure components or machines created to support creation and maintenance a desired state of the cloud infrastructure (achieved using steps discussed in
The user interface 475 may include a column timestamp 482 showing dates and times associated with changes in the status of the one or more commands. The user interface 475 may include a column status 484 showing a status of the one or more commands processed for achieving a desired state of the cloud infrastructure. The user interface 475 may further include a column resource type 486 showing type of resources deployed or maintained using the one or more commands. The user interface 475 may include a column resource name 488 showing name of cloud resources deployed and/or managed using the one or more commands.
In some examples, as shown in a row 480 of the user interface 475 of
In some examples, as shown in a row 490 of the user interface 475 of
In some examples, as shown in
In step 502, the cloud management platform (e.g., 122) receives a configuration file describing a desired state of cloud infrastructure for one or more cloud service providers. In some examples, the configuration file may be scripted using HCL syntax. In other examples, a configuration file may be an initialization (Init) file that includes structure and syntax describing configuration of a desired state of infrastructure. In some examples, the cloud management platform (e.g., 122) may recognize the file based on its extension. For example, if a processor associated with the cloud management platform receives a file with extension “.tf”, then the processor may recognize that it is an HCL file (associated with a cloud infrastructure tool) that may include configuration for a desired state of cloud infrastructure over the cloud integration tool.
In step 504, the cloud management platform may parse the configuration file to determine a desired state of cloud infrastructure for the one or more cloud service providers. As discussed above, in some examples, the cloud management platform may download a library required to understand the configuration file or schema associated with a desired state of cloud infrastructure. In some examples, one or more libraries required of parsing the configuration file and identifying all the resources, resource providers, and/or inputs specified in the configuration file may be downloaded after the configuration file is received at the cloud management platform. In other examples, one or more libraries required of parsing the configuration may be pre-configured within the cloud management platform.
In step 506, the cloud management platform (or one or more processors associated with the cloud management platform) identifies at least one of resources, resource providers, and plugins based on the configuration file for achieving the desired state of infrastructure.
In step 508, the cloud management platform may validate one or more accounts associated with the identified resources and resource providers. Specifically, the platform may validate whether resource providers and requested resources exist and whether the one or more accounts associated with the resource providers are valid. In step 510, the cloud management platform obtain or access at least one of resources, resource providers, and plugins required to create and manage cloud resources.
In step 512, the cloud management platform may generate a script based on the content of the configuration file. Specifically, the script may include at least one of cloud resources, cloud resource providers, and plugins identified from the configuration file. In some examples, the cloud management platform may use one or more libraries to parse the configuration file and create a script or template showing one or more resources, resource providers, and plugins required for creating a cloud infrastructure.
In step 514, the cloud management platform may further update a native cloud template to include the generated script in step 512. The native cloud template may include code for managing one or more native cloud resources within the cloud management platform. By updating the native cloud template to incorporate the script, a hybrid cloud template is created. The hybrid cloud template may show a user the cloud infrastructures involving one or more cloud resources to be created via the cloud integration tool. In some examples, the cloud resources, inputs, and plugins identified from the configuration file are mapped as inputs to the hybrid cloud template. In the above examples, resource values of the identified cloud resources may be parameterized as variables to allow a user to provide the resource values during a runtime (e.g., execution phase 350, as shown in
Inputs:
In the above example, the configuration file includes an AWS resource. Within the cloud template, the instance type for the AWS resource is parameterized and mapped as a variable of the cloud infrastructure tool (e.g., Cloud.Terraform.Configuration) associated with the configuration file. The variable may be further mapped as an input to the cloud template (e.g., input.instance_type). Accordingly, while deploying the cloud template (e.g., during execute phase 350), a user can provide a value for the variable (e.g., instance type) which may be further sent as an input while executing the cloud template (e.g., during execute phase 350) to achieve a desired state of cloud infrastructure.
In step 602, the cloud management platform may perform initialization of at least one of cloud resources, resource providers, and plugins of the hybrid cloud template. The initialization may initialize the resources, plugins, and other data. In some examples, initialization may initialize a working directory that contains the content and plugins associated with the configuration file. For example, to initialize configuration file associated with a cloud integration tool, the cloud management platform may perform an initialization command. Initialization may perform several tasks such as preparing a directory by downloading and installing cloud service provider (e.g., AWS) plugins.
In step 604, the cloud management platform may determine a plan to achieve the desired state of cloud infrastructure based on the hybrid cloud template. Specifically, the plan of the desired state of cloud infrastructure may provide a summary of updates required to achieve the desired state of cloud infrastructure. In some examples, the command may compare the desired state of cloud infrastructure requested within the configuration file with present cloud infrastructure and provide a summary of the changes required to achieve the desired state. Some cloud infrastructure plugins may provide a predefined command for creating the plan for the requested configurations based on the configuration file or hybrid template.
In step 606, the cloud management platform may publish the plan associated with the hybrid cloud template as an Event Broker subscription (EBS) event and show visual workflow of the plan. Specifically, the visual workflow of the plan enables the user to review and approve of the plan for the cloud infrastructure.
In step 608, the cloud management platform may enforce one or more policies over the plan to determine whether to move forward with the plan. In some examples, the cloud management platform may apply native governance and policies to one or more resources associated with the plan created in step 604. In some examples, the native policies may determine whether the user or an administrator requesting the desired state of infrastructure are authorized. Similarly, different policies and predefined rules may be enforced to the saved plan or the hybrid cloud template in order to validate the plan.
In step 610, the cloud management platform determine whether the published plan is valid and approved for creating the desired state of cloud infrastructure. In some examples, the cloud management platform may automatically determine whether one or more resources requested under the plan is valid based on acceptable or permitted resources for the cloud management platform. Alternatively, the cloud management platform may request a user or administrator to approve the plan. The user may approve the plan based on the one or more resources requested under the plan. Specifically, the user may determine cost of size of resources (e.g., storage), security cost associated with the resources, type of resources, and other information to validate and approve the plan. Alternatively, the cloud management platform automatically identifies cost and other configuration and characteristics about the resources, and determines whether such configuration would be permitted.
In step 612, the cloud management platform may deploy the hybrid cloud template over a cloud infrastructure tool to create the cloud infrastructure according to the approved plan. In some examples, the cloud management platform may execute a predefined command to deploy a cloud infrastructure based on the approved plan. The execution or deployment of the hybrid cloud template includes establishing one or more resources or controlling already established resources according to the plan. The execution step under 612 actually manipulates the real cloud infrastructure provided by one or more cloud service providers, which the user may utilize for one or more applications (e.g., email application).
In some examples, the execution step creates one or more cloud resources according to the resources described in the hybrid cloud template using the cloud integration tool. In some examples, a relationship between cloud resources described in the cloud template and deployed cloud resources after execution step 612 may be 1:1 or 1:N. Accordingly, once the cloud template is deployed under the step 612, for every cloud resource under the cloud template, a corresponding cloud resource will be deployed. In some examples, for a clustered resource in the cloud template, plurality of corresponding resources may be deployed based on the size of a cluster for the clustered resource.
In some examples, for the clustered resource within the cloud template, a number of cloud resources to be deployed are parameterized as an input. Accordingly, while deploying the cloud template, the user can provide a value for the number of resources. For example, the user may specify to deploy 600 virtual machine during execution based on a count value configured within the cloud template. In step 614, once the infrastructure is deployed, the cloud management platform (e.g., 122) may store state information about the created infrastructure and configuration. In some examples, in step 614, the state information is normalized and correlated to the discovered state of the cloud management platform prior to storing the state. In some examples, a deployed cloud resource associated with the cloud infrastructure tool may store a state file that includes the state information about the created infrastructure and configuration.
In step 702, the cloud management platform may receive a configuration file at a cloud management platform. The configuration file may describe a desired state of cloud infrastructure for one or more cloud service providers. In some examples, the configuration file may describe the final state of desired cloud infrastructure for one or more cloud service providers without realizing whether partial infrastructure is already established.
In step 704, the cloud management platform obtains a current state of the cloud infrastructure from the deployment of cloud infrastructure stored (within a state file) as a part of cloud management platform. Specifically, the cloud management platform may check whether a state file associated with cloud infrastructure for the cloud infrastructure tool is available or stored within the cloud management platform. Upon determining that a state file for the cloud infrastructure is available, the cloud management platform may obtain the current state information of the existing cloud infrastructure by accessing the state file.
In step 706, the cloud management platform may create an update to the hybrid cloud template based on the content of the configuration file, the state of the cloud infrastructure, and a native cloud template associated with the cloud management platform. In some examples, first, the cloud management platform may parse the configuration file to determine a desired state of cloud infrastructure for the one or more cloud service providers. Second, the cloud management platform (or one or more processors within the cloud management platform) identifies at least one of resources, resource providers, and plugins based on the configuration file for achieving the desired state of cloud infrastructure. Third, the cloud management platform may determine or identify a list of established cloud resources based on the state file for the existing cloud infrastructure. Fourth, the cloud management platform may a compare list of requested resources under the configuration file with the list of the established resources to determine changes required to achieve the desired state of cloud infrastructure.
In some examples, the cloud management platform obtains at least one of resources, resource providers, and plugins required to accommodate the changes required to the established cloud infrastructure. Accordingly, based on the changes required to one or more resources to achieve the desired state of cloud infrastructure (as determined under step 604); the cloud management platform may generate a script. Specifically, the script may include at least one of cloud resources, cloud resource providers, and plugins required to implement changes to the existing cloud infrastructure.
In some examples, the cloud management platform may further update a cloud template (or hybrid cloud template) to include the generated script. The hybrid cloud template may show a user the infrastructure involving one or more resources to be created via the cloud integration tool.
In step 708, the cloud management platform may perform steps 602, 604, and 606 (as described in
In some examples, the cloud management platform may perform an initialization of at least one of resources, resource provider, and plugins required to achieve updates to the cloud infrastructure. For example, if a desired state of cloud infrastructure is to achieve cloud infrastructure with two virtual machines and if a cloud infrastructure with one virtual machine is already established, then the cloud management platform may only perform initialization of the resources required to update cloud infrastructure to include the second virtual machine.
In some examples, after initialization of the resources required to update cloud infrastructure to include the second virtual machine, the cloud management platform may determine a plan to achieve the update to the cloud infrastructure. The plan of the desired state of cloud infrastructure may provide a summary of updates required to achieve the desired state of cloud infrastructure. In the above example, the plan specifically shows the steps required to establish the second virtual machine into already established cloud infrastructure. The cloud management platform may further publish the plan associated with the hybrid cloud template as an Event Broker subscription (EBS) event showing visual workflow of the plan. Specifically, the visual workflow of the plan enables the user to review and approve of the plan for the cloud infrastructure.
In step 710, the cloud management platform may apply policies to determine whether to move forward with the plan. The cloud management platform may enforce one or more policies over the plan to determine whether to move forward with the plan. In some examples, the cloud management platform may apply native governance and policies only to one or more changes needed to achieve updates to the cloud infrastructure.
In step 712, the cloud management platform (e.g., 122) may determine whether the plan is valid and approved for creating the desired state of cloud infrastructure. Specifically, the cloud management platform determine whether the published plan is valid and approved for creating updates to the cloud infrastructure.
In step 714, the cloud management platform may deploy the updated hybrid cloud template to update the cloud infrastructure according to the approved plan. Specifically, the cloud management platform may deploy the updated hybrid cloud template to create changes necessary to achieve the desired state of cloud infrastructure. In the above example of achieving a desired state of cloud infrastructure with two virtual machines, the deployment would only update cloud infrastructure to include a second virtual machine if the first machine is already part of the existing cloud infrastructure. In step 716, the cloud management platform may store state information about the cloud infrastructure after the desired state of the cloud infrastructure is achieved.
The foregoing description, for purposes of explanation, used specific nomenclature to provide a thorough understanding of the described embodiments. However, it will be apparent to one skilled in the art that the specific details are not required in order to practice the described embodiments. Thus, the foregoing descriptions of specific embodiments are presented for purposes of illustration and description. They are not intended to be exhaustive or to limit the described embodiments to the precise forms disclosed. It will be apparent to one of ordinary skills in the art that many modifications and variations are possible in view of the above teachings.