Documentation ¶
Index ¶
- Constants
- type Compute
- type ComputeRequest
- type Request
- func (r *Request) Create(ctx *pulumi.Context, computeRequested ComputeRequest) (*Compute, error)
- func (r *Request) CustomIngressRules() []securityGroup.IngressRules
- func (r *Request) CustomSecurityGroups(ctx *pulumi.Context) ([]*ec2.SecurityGroup, error)
- func (r *Request) GetAMI(ctx *pulumi.Context) (*ec2.LookupAmiResult, error)
- func (r *Request) GetDedicatedHost(ctx *pulumi.Context) (*ec2.DedicatedHost, error)
- func (r *Request) GetName() string
- func (r *Request) GetPostScript(ctx *pulumi.Context) (pulumi.StringPtrInput, error)
- func (r *Request) GetRequest() *Request
- func (r *Request) GetUserdata(ctx *pulumi.Context) (pulumi.StringPtrInput, error)
- func (r *Request) OutputHost() string
- func (r *Request) OutputPassword() string
- func (r *Request) OutputPrivateKey() string
- func (r *Request) OutputUsername() string
- func (r *Request) ReadinessCommand() string
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Compute ¶
type Compute struct { Specs *supportMatrix.SupportedHost Name string Username string Instance *ec2.Instance InstanceIP pulumi.StringOutput AWSKeyPair *ec2.KeyPair SG []*ec2.SecurityGroup // contains value if key is created within this module PrivateKey *tls.PrivateKey }
Related resources created within the compute asset
type ComputeRequest ¶
type ComputeRequest interface { // Get Request information GetRequest() *Request // Get ami value for the compute GetAMI(ctx *pulumi.Context) (*ec2.LookupAmiResult, error) // Get userdata if any GetUserdata(ctx *pulumi.Context) (pulumi.StringPtrInput, error) // Create dedicated host if compute requires it GetDedicatedHost(ctx *pulumi.Context) (*ec2.DedicatedHost, error) // In case a host has any specific ingress rule, this ingress rule will take effect on a SG // with egress to all in case of specific SG it is required to define them within CustomSecurityGroups CustomIngressRules() []securityGroup.IngressRules CustomSecurityGroups(ctx *pulumi.Context) ([]*ec2.SecurityGroup, error) // Get script to be executed after initalization (not suited for userdata) GetPostScript(ctx *pulumi.Context) (pulumi.StringPtrInput, error) // Command to be executed to ensure the provisioned is finish with fully setup ReadinessCommand() string // Create function to get a compute based on request Create(ctx *pulumi.Context, computeRequested ComputeRequest) (*Compute, error) }
Methods to be implemented by any specific type of compute supported these methods implement specifics on each different type
type Request ¶
type Request struct { ProjecName string Specs *supportMatrix.SupportedHost Public bool BastionSG *ec2.SecurityGroup KeyPair *ec2.KeyPair // contains value if key is created within this module PublicKeyOpenssh pulumi.StringOutput VPC *ec2.Vpc AvailabilityZones []string Region string Subnets []*ec2.Subnet SpotPrice string }
Composable resources and information provided to create a compute asset
func (*Request) CustomIngressRules ¶
func (r *Request) CustomIngressRules() []securityGroup.IngressRules
func (*Request) CustomSecurityGroups ¶
func (*Request) GetDedicatedHost ¶
func (*Request) GetPostScript ¶
func (*Request) GetRequest ¶ added in v0.0.2
func (*Request) GetUserdata ¶ added in v0.0.2
func (*Request) OutputHost ¶ added in v0.0.2
func (*Request) OutputPassword ¶ added in v0.0.2
func (*Request) OutputPrivateKey ¶ added in v0.0.2
func (*Request) OutputUsername ¶ added in v0.0.2
func (*Request) ReadinessCommand ¶ added in v0.0.2
Click to show internal directories.
Click to hide internal directories.