Configuration in this directory creates set of Security Group and Security Group Rules resources in various combination.
Data sources are used to discover existing VPC resources (VPC and default security group).
To run this example you need to execute:
$ terraform init
$ terraform plan
$ terraform apply
Note that this example may create resources which cost money. Run terraform destroy
when you don't need these resources.
Name | Version |
---|---|
terraform | >= 0.13.1 |
aws | >= 3.29 |
Name | Version |
---|---|
aws | >= 3.29 |
Name | Source | Version |
---|---|---|
complete_sg_disabled | ../../ | n/a |
http_sg_disabled | ../../modules/http-80 | n/a |
Name | Type |
---|---|
aws_security_group.default | data source |
aws_vpc.default | data source |
No inputs.
Name | Description |
---|---|
security_group_arn | The ARN of the security group |
security_group_id | The ID of the security group |