SecurityGroup
A resource of the AWS provider, version 0.3.0, in its Networking group. Import it with:
import SecurityGroup from "aws/networking"Example
resource SecurityGroup example {
name = "example-value"
description = "example-value"
vpcId = "example-value"
ingress = "..."
egress = "..."
tags = "..."
}Properties
Set by your code in the resource block. A required one must be set; any other you leave out takes the value under Default, if it has one.
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
name | string | — | No | Name of the security group |
description | string | — | No | Description of the security group (required by AWS) |
vpcId | string | — | No | VPC ID where the security group will be created |
ingress | any[] | — | No | Inbound rules allowing traffic into resources |
egress | any[] | — | No | Outbound rules allowing traffic from resources |
tags | object | — | No | Tags to apply to the security group |
Set by AWS after the resource is created: your code can read them but not set them. An importable one identifies an existing resource.
| Name | Type | Importable | Description |
|---|---|---|---|
securityGroupId | string | No | The security group ID assigned by AWS |
ownerId | string | No | The AWS account ID that owns the security group |
arn | string | Yes | The Amazon Resource Name (ARN) |