Carina

Resource

aws.ec2.SecurityGroup

Describes a security group.

Example

let vpc = aws.ec2.Vpc {
  cidr_block = '10.0.0.0/16'

  tags = {
    Environment = 'example'
  }
}

aws.ec2.SecurityGroup {
  group_name  = 'carina-example-sg'
  description = 'Example security group'
  vpc_id      = vpc.vpc_id

  tags = {
    Environment = 'example'
  }
}

Argument Reference

description

A description for the security group. Constraints: Up to 255 characters in length Valid characters: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*

group_name

The name of the security group. Names are case-insensitive and must be unique within the VPC. Constraints: Up to 255 characters in length. Can't start with sg-. Valid characters: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*

vpc_id

The ID of the VPC. Required for a nondefault VPC.

tags

The tags for the resource.

Attribute Reference

group_id

The ID of the security group.