Configuration in this directory creates set of Security Group and Security Group Rules resources in various combination.
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 | >= 1.0 |
aws | >= 3.29 |
Name | Version |
---|---|
aws | >= 3.29 |
Name | Source | Version |
---|---|---|
http_sg | ../../modules/https-443 | n/a |
mysql_sg | ../../modules/mysql | 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_description | The description of the security group |
security_group_id | The ID of the security group |
security_group_name | The name of the security group |
security_group_owner_id | The owner ID |
security_group_vpc_id | The VPC ID |