securitygroup

package
v0.6.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SSH_PORT int = 22
	RDP_PORT int = 3389
	SSH_TCP      = IngressRules{Description: "SSH", FromPort: SSH_PORT, ToPort: SSH_PORT, Protocol: "tcp"}
	RDP_TCP      = IngressRules{Description: "RDP", FromPort: RDP_PORT, ToPort: RDP_PORT, Protocol: "tcp"}
)

Pick ideas from https://github.com/terraform-aws-modules/terraform-aws-security-group/blob/master/rules.tf

Functions

This section is empty.

Types

type IngressRules

type IngressRules struct {
	Description string
	FromPort    int
	ToPort      int
	Protocol    string
	CidrBlocks  string
	SG          *ec2.SecurityGroup
}

type SGRequest

type SGRequest struct {
	Name         string
	Description  string
	IngressRules []IngressRules
	VPC          *ec2.Vpc
}

func (SGRequest) Create

func (r SGRequest) Create(ctx *pulumi.Context) (*SGResources, error)

type SGResources

type SGResources struct {
	SG *ec2.SecurityGroup
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL