Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Computed Security Group rules example

Configuration in this directory creates set of Security Group and Security Group Rules resources in various combination.

Usage

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.

Requirements

Name Version
terraform >= 1.0
aws >= 3.29

Providers

Name Version
aws >= 3.29

Modules

Name Source Version
http_sg ../../modules/https-443 n/a
mysql_sg ../../modules/mysql n/a

Resources

Name Type
aws_security_group.default data source
aws_vpc.default data source

Inputs

No inputs.

Outputs

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