Documentation ¶
Index ¶
- func CreateSecurityGroup(ctx context.Context, awsClient *awsclient.Client, groupName string, ...) (string, error)
- func CreateSubnet(ctx context.Context, logger *logrus.Entry, awsClient *awsclient.Client, ...) (string, error)
- func CreateVPC(ctx context.Context, logger *logrus.Entry, awsClient *awsclient.Client, ...) (string, string, error)
- func DestroySecurityGroup(ctx context.Context, logger *logrus.Entry, awsClient *awsclient.Client, ...) error
- func DestroySubnet(ctx context.Context, logger *logrus.Entry, awsClient *awsclient.Client, ...) error
- func DestroyVPC(ctx context.Context, logger *logrus.Entry, awsClient *awsclient.Client, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSecurityGroup ¶
func CreateSecurityGroup(ctx context.Context, awsClient *awsclient.Client, groupName string, vpcID string) (string, error)
CreateSecurityGroup creates a new security group.
func CreateSubnet ¶
func CreateSubnet(ctx context.Context, logger *logrus.Entry, awsClient *awsclient.Client, vpcID string, cidr string, name string) (string, error)
CreateSubnet creates a new subnet and waits for it to become available.
func CreateVPC ¶
func CreateVPC(ctx context.Context, logger *logrus.Entry, awsClient *awsclient.Client, vpcCIDR string, enableDnsHostnames bool) (string, string, error)
CreateVPC creates a new VPC and waits for it to become available. It returns the VPC ID, the Internet Gateway ID or an error in case something unexpected happens.
func DestroySecurityGroup ¶
func DestroySecurityGroup(ctx context.Context, logger *logrus.Entry, awsClient *awsclient.Client, securityGroupID string) error
DestroySecurityGroup deletes an existing security group.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.