mirror of
https://github.com/inspec/inspec
synced 2025-01-02 08:19:05 +00:00
21 lines
564 B
Terraform
21 lines
564 B
Terraform
|
#============================================================#
|
||
|
# Security Groups
|
||
|
#============================================================#
|
||
|
|
||
|
# Look up the default VPC and the default security group for it
|
||
|
data "aws_vpc" "default" {
|
||
|
default = "true"
|
||
|
}
|
||
|
|
||
|
data "aws_security_group" "default" {
|
||
|
vpc_id = "${data.aws_vpc.default.id}"
|
||
|
name = "default"
|
||
|
}
|
||
|
|
||
|
output "ec2_security_group_default_vpc_id" {
|
||
|
value = "${data.aws_vpc.default.id}"
|
||
|
}
|
||
|
|
||
|
output "ec2_security_group_default_group_id" {
|
||
|
value = "${data.aws_security_group.default.id}"
|
||
|
}
|