Infrastructure
Bases: DuploResourceV2
Duplocloud Infrastructure Resource
The infrastructure resource provides a set of commands to manage infrastructures in the Duplo system. An infrastructure defines the underlying cloud environment including VPC, subnets, and Kubernetes clusters.
Commands
apply
Apply a service.
Parameters:
--file, -f, --cli-input
--wait, -w
create
Create Infrastructure
Create a new infrastructure. When used with the --wait flag, the command will poll until the infrastructure reaches a Complete provisioning status.
Infrastructure Body
Contents of the infra.yaml file
Create One Liner
Returns:
| Name | Type | Description |
|---|---|---|
message |
A success message. |
Parameters:
--file, -f, --cli-input
delete
eks_config
EKS Configuration
Retrieve EKS session credentials for the current user scoped to an infrastructure plan.
Returns:
| Name | Type | Description |
|---|---|---|
eks_config |
The EKS cluster configuration and credentials. |
Parameters:
--plan, -P
faults
Infrastructure Faults
Retrieve a list of all faults across infrastructures in the Duplo system.
Returns:
| Name | Type | Description |
|---|---|---|
faults |
list
|
A list of infrastructure faults. |
Parameters:
name
positional
find
list
List Infrastructures
Retrieve a list of all infrastructures in the Duplo system.
Returns:
| Name | Type | Description |
|---|---|---|
infrastructures |
list
|
A list of all infrastructures. |