mirror of
https://github.com/inspec/inspec
synced 2024-12-30 06:53:22 +00:00
4229974e7d
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
21 lines
No EOL
564 B
HCL
21 lines
No EOL
564 B
HCL
#============================================================#
|
|
# 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}"
|
|
} |