Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
Software Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
On this page

Sharing a VPC

Updated on 2024-12-11 GMT+08:00

Scenario

To use CBH to manage ECSs, the ECSs and the CBH instance you are using must be in the same VPC.

Creating a VPC

  1. Log in to the management console.
  2. Click in the upper left corner, choose Management & Governance > Resource Access Manager, and go to the resource access management page.
  3. Choose Shared by Me > Resource Shares.
  4. Click Create Resource Share in the upper right corner.
  5. Set resource type to vpc:subnet, choose the corresponding region, and select the VPC to be shared. Click Next: Associate Permissions.
  6. On the Associate Permissions page, associate a RAM managed permission with each resource type, and then click Next: Specify Principals in the lower right corner.
  7. Specify the principals that you want to have access to the resources on the displayed page. Then, click Next: Confirm in the lower right corner.

    Table 1 Description

    Parameter

    Description

    Principal Type

  8. Check the configurations and click OK.

Using a VPC

  1. Log in to the management console.
  2. Click in the upper left corner of the page, select a region, and choose Security & Compliance > Cloud Bastion Host to go to the CBH instance management console.
  3. Click Buy CBH Instance to go to the Buy CBH Instance page.
  4. Select CBH Instance for Service Type and specify other parameters as required. For more information, see Table 2.

    Table 2 CBH instance parameters

    Parameter

    Description

    Billing Mode

    The billing mode of the instance. You can select Yearly/Monthly or Pay-per-use.

    NOTICE:

    Currently, the pay-per-use billing mode applies only to the government cloud zone.

    Yearly/Monthly is a prepaid billing mode in which a CBH instance is billed based on the service duration. This cost-effective mode is ideal when the duration of CBH instance usage is predictable.

    Pay-per-use billing is a postpaid mode in which you pay for what you use by the hour.
    NOTE:

    After the pay-per-use billing mode is enabled, the billing stops only when the target instance is deleted, regardless of the instance running status.

    Instance Type

    Select a single-node or primary/standby instance type based on your service requirements.

    • Single-node: Only one bastion host is available after the purchase.
    • Primary/Standby: After the purchase, two bastion hosts are delivered to form a two-node cluster. Once the primary bastion host is unavailable, the standby one takes over the job immediately.
      NOTE:

      If you buy a primary/standby instance, do not disable HA, or logins will fail.

    AZ

    An AZ is the location where the bastion host instance you buy is deployed.

    NOTE:

    If you buy a primary/standby instance, two bastion hosts will be deployed in different AZs. So, you need to select the primary and standby AZs. You can retain the default settings.

    Instance Name

    Name of the CBH instance.

    Edition

    Specifications of your CBH instance.

    CBH provides the standard and professional editions. Each edition has 50, 100, 200, 500, 1,000, 2,000, 5,000, and 10,000 asset specifications.

    Asset quantity indicates the maximum number of resources your instance can manage and the maximum number of concurrent connections your instance can establish. The vCPUs and the size of data and system disks vary depending on the asset quantity..

    For example, if you select 100 assets, the number of resources your instance can manage and the maximum number of concurrent connections your instance can establish are both 100.

    NOTE:

    Currently, primary/standby instances cannot manage public network resources using EIPs.

    Storage Package

    If you need more storage for a CBH instance, you can buy a storage package.

    VPC

    The Virtual Private Cloud (VPC) where your instance is located. Select a VPC in the current region.

    If no VPC is available in the current region, click View VPC and create one.

    NOTE:
    • By default, networks in VPCs in different regions or even in the same region are not connected. The network communications on these different networks are isolated from each other. This is not the case for different AZs on the same VPC. Two networks on the same VPC should be able to communicate with each other even if they are in different AZs.
    • A CBH instance directly manages and allows access from resources, such as ECSs, in the same VPC in the same region. To manage resources such as ECSs in different VPCs in the same region, establish a VPC peering connection, use a VPN, or use other methods to connect networks. For details, see Creating a VPC Peering Connection. Managing ECSs across regions is not recommended.

    For more information, see VPC Planning.

    Security Group

    The security group for your CBH instance. The default security group is Sys-default in the current region.

    If no security group is available, click Manage Security Groups to create a security group or configure a new one.

    NOTE:
    • A security group provides access rules for the CBH instances and resources that have the same security protection requirements and are mutually trusted in the same VPC. CBH instances are protected by these access rules after being added the security group. For details, see
    • CBH instances and ECSs can be added to the same security groups. They do not affect each other when implementing security group rules.
    • For details about how to modify a security group, see Changing Security Groups.
    • Before creating HA instances, ensure that the security group allows inbound traffic from ports 22, 31036, 31679, and 31873.
    • When a bastion host instance is created, ports 80, 8080, 443, and 2222 are automatically enabled. If you do not need to use them, disable them immediately after the instance is created.
    • During cross-version upgrade, ports 22, 31036, 31679, and 31873 are automatically enabled for the instance. After the upgrade, keep port 31679 enabled and disable other ports immediately if you do not need to use them.

    For more information about security groups, see How Do I Configure a Security Group for a CBH Instance?

    Subnet

    The subnet in the current VPC for your CBH instance.

    NOTE:

    The selected subnet must be in the VPC network segment.

    For more information, see Creating a VPC.

    Assign IPv4 Address

    Select Auto or Manual.

    If you select Manual, you can view the used IP addresses.

    EIP

    (Optional) Select an EIP in the current region.

    If no EIP is available in the current region, click Buy EIP to create one.

    NOTE:
    • If you select an EIP when purchasing an instance, but the EIP fails to be bound to the instance after the instance is in the running state, the EIP may have been bound to other servers while the instance is being created. In this case, bind another EIP to the instance by referring to Binding an EIP to a CBH Instance.
    • An EIP can be bound to only one cloud resource. A CBH instance cannot share an EIP with other cloud resources. After you created a CBH instance, you are required to bind an EIP to the instance for logging in to the CBH system. You need to create at least one EIP for a CBH instance. You can bind an EIP to the CBH instance now or later by referring to Binding an EIP to a CBH Instance.
    • To meet the requirements of the CBH system, set the EIP bandwidth to 5 Mbit/s or higher.
    • After the CBH instance is created, you can unbind the original EIP from the instance and bind a new EIP to it.

    For more information about EIPs, see EIP Overview.

    Enterprise Project

    Select the enterprise project the CBH instance belongs to.

    The default enterprise project is selected by default.

    Username

    The default username admin is used.

    admin is the system administrator account. This account has the highest operation permissions. Keep the account information secure.

    Password

    User-defined password of the admin user.

    NOTE:
    • The password must:
      • Contain 8 to 32 characters.
      • Contain at least three of the following types of characters: uppercase letters (A to Z), lowercase letters (a to z), digits (0 to 9), and following special characters: !@$%^-_=+[{}]:,./?~#*
      • Cannot contain the username or the username spelled backwards.
      • Cannot contain more than two consecutive identical characters.
    • Enter the same password in the Password and Confirm Password text boxes.
    • The CBH system cannot obtain the password of system administrator admin. Keep your account information secure.
    • When you log in to your CBH system as admin for the first time, change the password and configure mobile phone number as prompted. Otherwise, you cannot log in to the CBH system.
    • If you forget the password of user admin of the instance after you buy it, you can reset the password.

    Required Duration

    Required duration of the instance

    You can buy a CBH instance on a monthly or yearly basis.

    Tag

    Tags: It is recommended that you use the TMS predefined tag function to add the same tag to different cloud resources.

    If your organization has configured a tag policy for CBH, you need to add tags in compliance with the policy. If a tag does not comply with the tag policies, CBH instances may fail to be created. Contact your organization administrator to learn more about tag policies.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback