securitygroup

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: Apache-2.0 Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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