Cloud service compiling method and device, equipment, medium and program product

By adopting IaC mode and Terraform code in the cloud management platform, the problems of complex processes and insufficient scalability in the development and operation and maintenance mode of the traditional cloud management platform are solved, and the rapid compilation and release of cloud services are achieved, and management efficiency and platform stability are improved.

CN119556908APending Publication Date: 2025-03-04AGRICULTURAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411708466.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-26
Publication Date
2025-03-04

AI Technical Summary

Technical Problem

Under the development and operation and maintenance mode of traditional cloud management platform, the process is complex and the time period is long, making it difficult to meet the needs of rapid development and rapid use of cloud computing technology, and the platform is insufficient in scalability and stability.

Method used

The infrastructure as code (IaC) model is used to manage the underlying resource, deploy multiple compilation modules for calling the underlying resource, encapsulate infrastructure configuration through Terraform code, and call cloud service providers to achieve rapid compilation and release of cloud services.

Benefits of technology

It improves the efficiency of cloud service management, reduces the requirements for business understanding and development technology, improves the stability and expansion capabilities of the platform, and realizes the rapid development and launch of cloud service scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119556908A_ABST
    Figure CN119556908A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a cloud service compilation method and device, equipment, a medium and a program product, and the method comprises the steps: displaying an interaction interface of a cloud management platform, responding to a selection operation of a target compilation module in selectable compilation modules, and obtaining the target compilation module; interactively obtaining a creation sequence, a combination mode and a setting operation of configuration parameters of the selected target compiling modules; in response to the setting operation, obtaining a cloud service item; for each target compilation module in the cloud service item, according to the Terraform code in the target compilation module, a Provider corresponding to the target compilation module is determined, and different Providers represent different underlying resources; and according to the configuration parameters of the target compilation module and the Provider, performing resource configuration in the container to obtain a target cloud service. And the efficiency of cloud service management is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a cloud service compilation method, device, equipment, medium and program product. Background Art

[0002] With the continuous development and improvement of cloud computing technology, data centers have an increasing demand for cloud management platform construction, management, and operation and maintenance. At the same time, the financial industry has introduced new technologies, new applications, and new architectures in its digital transformation work, which has put higher requirements on the adaptability and delivery of cloud management platforms. The cloud management platform has gradually evolved from an initial resource management and scheduling platform to a multi-cloud management platform that provides rich cloud service capabilities.

[0003] Under the traditional cloud management platform development and operation model, the product design, development, production and application methods are adopted. The process is complex and the time cycle is long. The scalability of the platform is affected by the platform architecture model. It takes a long time to adapt and introduce new cloud computing product technologies before they can be transformed into deliverable cloud services. Even under the agile development model, it takes several months, which is difficult to meet the needs of rapid development and rapid commissioning of the ever-changing cloud computing technology. Summary of the invention

[0004] Embodiments of the present application provide cloud service compilation methods, devices, equipment, media and program products to improve the efficiency of cloud service association.

[0005] In a first aspect, an embodiment of the present application provides a cloud service compilation method, which is applied to a cloud management platform. The cloud management platform performs underlying resource management based on the infrastructure as code IaC mode. Multiple compilation modules for calling underlying resources are deployed in the cloud management platform. The method includes:

[0006] Displays the interactive interface of the cloud management platform, which includes optional compilation modules;

[0007] In response to a selection operation of a target compilation module in the optional compilation modules, the target compilation module is obtained;

[0008] Interactively obtain the creation order, combination method and configuration parameter setting operations of multiple selected target compilation modules;

[0009] In response to the setting operation, a cloud service project is obtained, the cloud service project including target compilation modules, a creation order, a combination method, and configuration parameters of the target compilation modules;

[0010] For each target compilation module in the cloud service project, determine the Provider corresponding to the target compilation module according to the Terraform code in the target compilation module. Different Providers represent different underlying resources.

[0011] According to the configuration parameters and Provider of the target compilation module, resources are configured in the container to obtain the target cloud service.

[0012] In a second aspect, an embodiment of the present application provides a cloud service compilation device, which is applied to a cloud management platform. The cloud management platform performs underlying resource management based on the infrastructure as code IaC mode. Multiple compilation modules for calling underlying resources are deployed in the cloud management platform. The device includes:

[0013] The display module is used to display the interactive interface of the cloud management platform, which includes an optional compilation module;

[0014] A response module, used for obtaining the target compilation module in response to a selection operation of the target compilation module in the optional compilation modules;

[0015] The interactive module is used to interactively obtain the creation order, combination mode and configuration parameter setting operation of the selected multiple target compilation modules;

[0016] A obtaining module, used to obtain a cloud service project in response to a setting operation, wherein the cloud service project includes a target compilation module, a creation order, a combination method, and configuration parameters of the target compilation module;

[0017] Determine the module, which is used to determine the Provider corresponding to each target compilation module in the cloud service project according to the Terraform code in the target compilation module. Different Providers represent different underlying resources.

[0018] The configuration module is used to configure resources in the container according to the configuration parameters and Provider of the target compilation module to obtain the target cloud service.

[0019] In a third aspect, an embodiment of the present application provides a cloud service compilation device, including: a memory, a processor;

[0020] Memory stores computer-executable instructions;

[0021] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the above first aspect and / or various possible implementations of the first aspect.

[0022] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the first aspect above and / or various possible implementations of the first aspect.

[0023] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the above first aspect and / or various possible implementation methods of the first aspect.

[0024] The embodiment of the present application provides a cloud service compilation method, device, equipment, medium and program product, which displays an interactive interface of a cloud management platform, wherein the interactive interface includes optional compilation modules; in response to the selection operation of a target compilation module in the optional compilation module, the target compilation module is obtained; the creation order, combination mode and configuration parameter setting operation of the selected multiple target compilation modules are interactively obtained; in response to the setting operation, a cloud service project is obtained, and the cloud service project includes the target compilation module, the creation order, combination mode and configuration parameters of the target compilation module; for each target compilation module in the cloud service project, the Provider corresponding to the target compilation module is determined according to the Terraform code in the target compilation module, and different Providers represent different underlying resources; according to the configuration parameters and Provider of the target compilation module, resource configuration is performed in the container to obtain the target cloud service. The efficiency of cloud service management is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0026] Figure 1 A scenario diagram compiled for the cloud services provided by this application;

[0027] Figure 2 A flowchart of the cloud service compilation method provided for this application;

[0028] Figure 3 A schematic diagram of the structure of the cloud service compilation device provided by this application;

[0029] Figure 4 A schematic diagram of the structure of the cloud service preparation equipment provided by this application.

[0030] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0031] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0032] First, the terms involved in this application are explained:

[0033] Cloud service: It can refer to a computing resource and service model provided through the Internet, allowing users to access and use computing, storage, network and other resources on demand without having to purchase and maintain physical hardware themselves.

[0034] Infrastructure as Code (IaC): This can refer to the use of code to define and manage infrastructure. IaC is a form of configuration management that encodes an organization's infrastructure resources into text files, introducing software engineering principles and methods to cloud infrastructure.

[0035] Terraform: Can refer to HashiCorp's open source "infrastructure as code" tool. As a declarative coding tool, Terraform enables developers to use the HCL high-level configuration language to describe the "end state" cloud or local infrastructure required to run applications. A plan to reach that end state can be generated and executed to deliver the infrastructure.

[0036] Provider: It can refer to a design pattern that interacts with the infrastructure through APIs to create, modify, and delete objects and resources. It is an important component for Terraform to achieve multi-cloud infrastructure management. Each Provider represents a specific cloud service provider, such as AWS, Google Cloud, Azure, Huawei Cloud, etc. Each Provider is independent and can be called by Terraform.

[0037] Underlying resources: may include computing resources, storage resources, network resources, databases, load balancing, identity and access management, monitoring and logging, etc.

[0038] Figure 1 A scenario diagram compiled for the cloud service provided by this application, such as Figure 1As shown, the specific application scenarios of the present application include a cloud management platform and a server. The cloud management platform performs underlying resource management based on the Infrastructure as Code (IaC) model. Multiple orchestration modules for calling underlying resources are deployed in the cloud management platform. The server is used to display an interactive interface of the cloud management platform, which includes optional orchestration modules. In response to a selection operation of a target orchestration module in the optional orchestration module, a target orchestration module is obtained. The creation order, combination method, and configuration parameter setting operations of the selected multiple target orchestration modules are interactively obtained. In response to the setting operation, a cloud service project is obtained, and the cloud service project includes a target orchestration module, a creation order, combination method, and configuration parameters of the target orchestration modules. For each target orchestration module in the cloud service project, the Provider corresponding to the target orchestration module is determined according to the Terraform code in the target orchestration module, and different Providers represent different underlying resources. According to the configuration parameters and Provider of the target orchestration module, resource configuration is performed in the container to obtain the target cloud service.

[0039] Combined with the above scenarios, it can be seen that in the existing technology, the traditional cloud management platform development and operation mode adopts the product design, development, production, and application methods. The process is complex and the time cycle is long. The scalability of the platform is affected by the platform architecture model. It takes a long time to adapt and introduce new cloud computing product technologies to transform them into deliverable cloud services. Even under the agile development model, it takes several months, which is difficult to meet the needs of rapid development and rapid commissioning of cloud computing technologies that are changing with each passing day. With the continuous iterative development of the platform, the platform functional modules will gradually increase, and the platform will become more and more large. The traditional API interface call method has high technical requirements for developers and their understanding of business logic. Potential problems in development will gradually emerge as the platform is used, affecting the subsequent use of the platform and the transformation and development of the technology stack.

[0040] At the same time, as the scale of platform usage expands, the business scale continues to grow, the number of managed resources and service users continues to increase, the platform's performance, service level, and operating efficiency will all decline. The continuous adjustment and change of platform resource configuration over time also brings considerable pressure to operation and maintenance management, and the operation and maintenance difficulty of the entire platform has also increased significantly. Moreover, during the platform construction process, more attention is often paid to the delivery of platform cloud resources, and the handling of platform abnormal events and operation and maintenance management work will be slightly insufficient, which brings difficulties and challenges to the handling and resolution of subsequent events.

[0041] This technical solution uses the Infrastructure as Code (IaC) mode on the cloud management platform to manage the underlying resources, deploys multiple compilation modules for calling the underlying resources, and then displays the interactive interface of the cloud management platform, which includes optional compilation modules; in response to the selection operation of the target compilation module in the optional compilation module, the target compilation module is obtained; the creation order, combination method and configuration parameter setting operation of the selected multiple target compilation modules are interactively obtained; in response to the setting operation, a cloud service project is obtained, and the cloud service project includes the target compilation module, the creation order, combination method and configuration parameters of the target compilation module; for each target compilation module in the cloud service project, the Provider corresponding to the target compilation module is determined according to the Terraform code in the target compilation module, and different Providers represent different underlying resources; according to the configuration parameters and Provider of the target compilation module, resource configuration is performed in the container to obtain the target cloud service.

[0042] By introducing IaC as the development model for the cloud management platform, the overall functions and service scenarios of the cloud management platform are decoupled, and the cloud service provider Provider interface is simply encapsulated and executed through Terraform to realize the release of complex cloud service functions. Since the Provider interface provided by the cloud service provider is an efficient integrated management of multiple API interfaces for specific functions, it not only reduces the scheduling frequency with third-party platforms, reduces the requirements for business understanding and development technology, but also reduces the dependence and impact on other functional components of the platform, thereby improving the stability and expansion capabilities of the platform, and realizing that new cloud service scenarios can be quickly developed and launched under the new model, and the cloud management platform's underlying resource management functions are moved down, reducing the complexity of the cloud management platform's scheduling management and improving the efficiency of platform management. At the same time, based on the IaC model, daily operation and maintenance and configuration management scenario services are designed to ensure that problems with platform management resources can be quickly restored according to the configuration model, the causes of abnormal events on the underlying platform can be more quickly and clearly located, and the automatic recovery and execution of abnormal workflows can be realized in a timely manner.

[0043] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0044] Figure 2 A flowchart of the cloud service compilation method provided for this application, such as Figure 2 As shown, the method is applied to a cloud management platform. The cloud management platform manages underlying resources based on the infrastructure as code (IaC) model. Multiple compilation modules for calling underlying resources are deployed in the cloud management platform. The method includes:

[0045] S201. Display an interactive interface of the cloud management platform, wherein the interactive interface includes an optional compilation module.

[0046] Among them, the interactive interface can refer to the medium for interaction between the user and the cloud management platform, and the user can view and operate the cloud management platform through the interactive interface.

[0047] The optional orchestration module may refer to an orchestration module to be selected and displayed in the exchange interface. The orchestration module may refer to a folder containing a group of Terraform codes, and an orchestration module implements a type of underlying resource.

[0048] In this application, the IaC model is used to decouple the management functions of the cloud management platform itself from the underlying resource management and operation functions. The platform's own user authentication, security protection, approval process, log management and other functions still use the traditional development framework. Then, the IaC model is used to replace the traditional process orchestration service delivery model. The development of cloud service scenarios can be quickly developed and launched by users in Terraform's relatively simple low-code development model. There is no need to upgrade and release the platform version. The development of cloud services no longer depends on the platform's automated tools and process services. Cloud services are no longer closely related to multiple functional modules of traditional cloud management platforms. Terraform is used to encapsulate infrastructure code and call cloud service vendors Provider, thereby reducing the interaction between the cloud management platform and the underlying resource management platform, reducing the operating pressure of the cloud management platform itself, improving the platform's service capabilities, and effectively avoiding the impact of a large number of concurrent cloud services on the platform.

[0049] S202: In response to a selection operation of a target compilation module in the optional compilation modules, obtain the target compilation module.

[0050] The selection operation may refer to the user selecting an optional compilation module as a required compilation module through an interactive device, and the compilation module selected by the user is referred to as a target compilation module.

[0051] S203: interactively obtain the creation order, combination mode and configuration parameter setting operation of the selected multiple target compilation modules.

[0052] In this application, since different target compilation modules represent different categories of underlying resources, the use of some underlying resources depends on other underlying resources, so the user is also required to determine the order in which different underlying resources are created. For example, a virtual machine may need to be created after the network and subnet configuration are completed. At the same time, in order to determine the number of underlying resources required, it is necessary to set the necessary configuration parameters for each module, such as the specifications of the computing instance, storage capacity, network configuration, security group rules, etc.

[0053] S204. In response to the setting operation, a cloud service project is obtained, where the cloud service project includes target compilation modules, a creation order, a combination method, and configuration parameters of the target compilation modules.

[0054] In the present application, after the user confirms the setting operation, a cloud service project is obtained, which is used to obtain cloud services according to the cloud service project.

[0055] S205. For each target compilation module in the cloud service project, determine the Provider corresponding to the target compilation module according to the Terraform code in the target compilation module, where different Providers represent different underlying resources.

[0056] In this application, the Terraform code includes the Provider called in the target compilation module, so that the target compilation module can interact with the underlying resources through the Provider.

[0057] In particular, the required personalized resource management functions can be developed as Providers, and then the Providers can be managed by IaC components for Terraform code calls.

[0058] The development, management, and testing of Terraform code are carried out in the same way as ordinary code.

[0059] S206. According to the configuration parameters of the target compilation module and the Provider, resources are configured in the container to obtain the target cloud service.

[0060] In this application, the configuration parameters of the target compilation module are assembled and the container is called to create the basic resource environment. The Terraform code runs in the container, calls the Provider to implement the cloud platform operations corresponding to the underlying resources, and then completes the basic configuration. After the resources are distributed, the container is destroyed, and the cloud management records the basic resource environment information, including resource configuration information, and feeds the information back to the applicant.

[0061] Exemplarily, resource configuration in a container may be performed using the following steps:

[0062] 1. Prepare configuration parameters: Collect and organize the configuration parameters of the target orchestration module. These parameters may include computing instance type, storage size, network configuration, security group rules, etc.

[0063] 2. Containerize the Terraform environment: Create a Docker container image that contains Terraform and necessary dependencies.

[0064] 3. Start the container and run Terraform: Use Docker to start the container and execute Terraform commands in the container to initialize and apply the configuration. Terraform will call the corresponding cloud service provider's API (through Provider) according to the configuration file to create and configure basic resources.

[0065] 4. Resource creation and configuration: Terraform creates the required cloud resources, such as virtual machines, networks, storage, etc., according to the configuration files. After the resource creation is completed, Terraform will output detailed information about the resource, such as resource ID, IP address, etc.

[0066] 5. Record and feedback resource information: Record the resource information output by Terraform in the cloud management platform. This may involve storing the information in a database or configuration management tool. Feedback the resource configuration information to the applicant, possibly through API, email or other communication methods.

[0067] 6. Destroy the container: After confirming that all resources have been successfully created and recorded, destroy the container running Terraform to free up computing resources.

[0068] 7. Subsequent management and monitoring: Use the cloud management platform to continuously monitor and manage the created resources. Set up automated monitoring and alerts to ensure the normal operation of resources and respond to potential problems in a timely manner.

[0069] In particular, if the configuration parameters in the cloud service project need to be updated, the configuration parameters of the specific target compilation module are updated to obtain the updated configuration parameters of the target compilation module, and then the updated configuration parameters are used as configuration parameters. According to the configuration parameters of the target compilation module and the Provider, resources are configured in the container to obtain the updated target cloud service.

[0070] Furthermore, all resource release and change actions of the cloud management platform are completed through Terraform code, and each resource has corresponding configuration information. Release and change records can also be saved for compliance auditing.

[0071] In some embodiments, the method may further include:

[0072] Before configuring resources in the container, perform anomaly detection on the underlying resources corresponding to the Provider. If there is no anomaly in the underlying resources corresponding to the Provider, configure resources in the container according to the configuration parameters of the compilation module and the Provider to obtain the target cloud service.

[0073] In this application, during the resource delivery process, delivery anomalies may occur due to failures in the underlying resource platform. Based on Terraform, create an underlying resource pool status detection service on the cloud management platform, and regularly detect the underlying resource pool status through Provider. Only continue to issue or change resources after the service is normal. Avoid meaningless retries and waste cloud management platform resources.

[0074] In some embodiments, the method may further include:

[0075] In response to the administrator's review of the cloud service project, obtaining the review result;

[0076] If the audit result is passed, the target cloud service will be obtained according to the cloud service project.

[0077] In this application, you can also set up an administrator review step to review the cloud service project to avoid wasting resources.

[0078] In some embodiments, the method may further include:

[0079] In the process of obtaining the target cloud service, initial resource configuration parameters of the target cloud service are created.

[0080] In this application, the process of deploying infrastructure code through Terraform will automatically create initial resource configuration parameters, and the configuration files containing the initial resource configuration parameters will be centrally stored and managed to prevent human tampering, ensuring the traceability of resource configuration management operations. If there is a problem with the resources and they need to be redeployed, Terraform can quickly redeploy according to the configuration files, or use the configuration files to compare with the current resource configuration status, promptly discover configuration changes, and notify management personnel to avoid application system operation risks.

[0081] Specifically, the real-time resource configuration parameters of the target cloud service may be obtained according to the preset monitoring frequency;

[0082] Compare the real-time resource configuration parameters with the initial resource configuration parameters to see if there are any differences. If there are any differences between the real-time resource configuration parameters and the initial resource configuration parameters, a configuration deviation alarm is issued.

[0083] and / or, correcting the target cloud service based on the initial resource configuration parameters.

[0084] In some embodiments, the method may further include:

[0085] When an abnormality is detected in any underlying resource associated with the target cloud service, the state of the target cloud service is set to unavailable;

[0086] When it is detected that all underlying resources associated with the target cloud service are normal, the state of the target cloud service is set to available.

[0087] Furthermore, in the case of a large number of abnormal failed tasks due to failures in the underlying platform, the corresponding cloud service can be set to unavailable through the detection module in the cloud management platform. After detecting that the underlying platform has recovered, the cloud service affected by the Provider scenario will be automatically restored, which not only avoids the impact of multiple failed work orders polling and waiting at the same time on the platform operation, but also ensures the efficient recovery work after abnormalities caused by network, underlying platform abnormalities, etc.

[0088] Exemplarily, the cloud management platform provided in the embodiment of the present application may include an application layer, a channel layer and a resource layer, wherein the application layer includes resource issuance, resource change, health check, environment monitoring, abnormal recovery, configuration correction, configuration monitoring and compliance audit, etc., the channel layer includes IaC operating environment and Terraform, etc., and the resource layer includes infrastructure cloud, resource cloud, various cloud vendors, etc.

[0089] The cloud service compilation method provided in the embodiment of the present application decouples the management function of the cloud management platform itself from the management and operation function of the underlying resource platform. The platform's own user authentication, security protection, approval process, log management and other functions still adopt the traditional development framework, and the IaC model is used to replace the traditional process orchestration service delivery model. The development work of cloud service scenarios can be quickly developed and launched through Terraform in a relatively simple low-code development model, without the need to upgrade and release the platform version. The development of cloud services no longer depends on the platform's automation tools and process services. Cloud services are no longer closely related to multiple functional modules of the traditional cloud management platform. The infrastructure code is encapsulated through Terraform, and the cloud service vendor Provider is called to reduce the interaction between the cloud management platform and the underlying resource management platform, reduce the operating pressure of the cloud management platform itself, improve the platform service capabilities, and effectively avoid the impact of a large number of cloud services on the platform.

[0090] Modular packaging of Providers for different resource environments not only reduces the cost of development and use, but also facilitates problem tracing and handling. Each module corresponds to a specific cloud service scenario Provider of a specific cloud service vendor. The platform can determine the cause of the problem based on the module where the problem occurs without human intervention, reducing the complexity of troubleshooting and professional technical requirements for operation and maintenance personnel.

[0091] Figure 3 A schematic diagram of the structure of the cloud service compilation device provided in this application, such as Figure 3 As shown, the device 30 comprises:

[0092] Display module 301, used to display the interactive interface of the cloud management platform, which includes an optional compilation module;

[0093] A response module 302, for obtaining a target compilation module in response to a selection operation of a target compilation module in the optional compilation modules;

[0094] Interaction module 303, used to interactively obtain the creation order, combination mode and configuration parameter setting operation of the selected multiple target compilation modules;

[0095] The obtaining module 304 is used to obtain a cloud service project in response to the setting operation, wherein the cloud service project includes a target compilation module, a creation order, a combination method, and configuration parameters of the target compilation module;

[0096] The determination module 305 is used to determine the Provider corresponding to each target compilation module in the cloud service project according to the Terraform code in the target compilation module, where different Providers represent different underlying resources;

[0097] The configuration module 306 is used to configure resources in the container according to the configuration parameters of the target compilation module and the Provider to obtain the target cloud service.

[0098] The cloud service compilation device provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be described in detail here.

[0099] Figure 4 A schematic diagram of the structure of the cloud service preparation equipment provided by this application. Figure 4 As shown, the electronic device 40 provided in this embodiment includes: at least one processor 401 and a memory 402. Optionally, the device 40 also includes a communication component 403. The processor 401, the memory 402 and the communication component 403 are connected via a bus 404.

[0100] In a specific implementation process, at least one processor 401 executes the computer-executable instructions stored in the memory 402, so that at least one processor 401 executes the above method.

[0101] The specific implementation process of the processor 401 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.

[0102] In the above embodiments, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.

[0103] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-volatile Memory, NVM), such as at least one disk memory.

[0104] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.

[0105] The present application also provides a computer program product, including a computer program, which implements the above method when executed by a processor.

[0106] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above method is implemented.

[0107] The above-mentioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.

[0108] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.

[0109] The division of units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.

[0110] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0111] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0112] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0113] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0114] Finally, it should be noted that those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention, which follow the general principles of the present invention and include common knowledge or customary technical means in the art not disclosed by the present invention, are not limited to the precise structure described above and shown in the drawings, and may be modified and changed in various ways without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A cloud service compilation method, characterized in that: Applied to a cloud management platform, the cloud management platform performs underlying resource management based on the infrastructure as code (IaC) model, and multiple compilation modules for calling underlying resources are deployed in the cloud management platform. The method includes: Displaying an interactive interface of the cloud management platform, wherein the interactive interface includes an optional compilation module; In response to a selection operation of a target compilation module in the optional compilation modules, obtaining the target compilation module; Interactively obtain the creation order, combination method and configuration parameter setting operations of multiple selected target compilation modules; In response to the setting operation, a cloud service project is obtained, the cloud service project including target compilation modules, a creation order, a combination method, and configuration parameters of the target compilation modules; For each target compilation module in the cloud service project, determine the Provider corresponding to the target compilation module according to the Terraform code in the target compilation module, where different Providers represent different underlying resources; According to the configuration parameters of the target compilation module and the Provider, resources are configured in the container to obtain the target cloud service.

2. The method according to claim 1, characterized in that The method further comprises: Before configuring resources in the container, an abnormality detection is performed on the underlying resources corresponding to the Provider. If there is no abnormality in the underlying resources corresponding to the Provider, resource configuration is performed in the container according to the configuration parameters of the compilation module and the Provider to obtain the target cloud service.

3. The method according to any one of claims 1-2, characterized in that: The method further comprises: In response to the administrator's review of the cloud service project, obtaining a review result; If the audit result is passed, the target cloud service is obtained according to the cloud service project.

4. The method according to any one of claims 1-2, characterized in that: The method further comprises: In the process of obtaining the target cloud service, initial resource configuration parameters of the target cloud service are created.

5. The method according to claim 4, characterized in that The method further comprises: Acquire real-time resource configuration parameters of the target cloud service according to a preset monitoring frequency; Comparing whether the real-time resource configuration parameters are different from the initial resource configuration parameters, and if the real-time resource configuration parameters are different from the initial resource configuration parameters, issuing a configuration deviation alarm; And / or, correcting the target cloud service according to the initial resource configuration parameters.

6. The method according to any one of claims 1-2, characterized in that: The method further comprises: When any underlying resource associated with the target cloud service is detected to be abnormal, setting the state of the target cloud service to unavailable; When it is detected that all underlying resources associated with the target cloud service are normal, the state of the target cloud service is set to available.

7. A cloud service compilation device, characterized in that: Applied to a cloud management platform, the cloud management platform performs underlying resource management based on the infrastructure as code (IaC) model, and multiple compilation modules for calling underlying resources are deployed in the cloud management platform. The device includes: A display module, used to display the interactive interface of the cloud management platform, wherein the interactive interface includes an optional compilation module; A response module, used for obtaining the target compilation module in response to a selection operation of the target compilation module in the optional compilation module; The interactive module is used to interactively obtain the creation order, combination mode and configuration parameter setting operation of the selected multiple target compilation modules; An obtaining module, used for obtaining a cloud service project in response to the setting operation, wherein the cloud service project includes a target compilation module, a creation order, a combination method, and configuration parameters of the target compilation module; A determination module is used to determine, for each target compilation module in the cloud service project, a Provider corresponding to the target compilation module according to the Terraform code in the target compilation module, where different Providers represent different underlying resources; The configuration module is used to configure resources in the container according to the configuration parameters of the target compilation module and the Provider to obtain the target cloud service.

8. A cloud service compilation device, characterized in that: include: Memory, processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 6 when executed by a processor.

10. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 6 when being executed by a processor.