github.com/aquasecurity/trivy-iac@v0.8.1-0.20240127024015-3d8e412cf0ab/internal/adapters/cloudformation/aws/ec2/ec2.go (about) 1 package ec2 2 3 import ( 4 "github.com/aquasecurity/defsec/pkg/providers/aws/ec2" 5 "github.com/aquasecurity/trivy-iac/pkg/scanners/cloudformation/parser" 6 ) 7 8 // Adapt ... 9 func Adapt(cfFile parser.FileContext) ec2.EC2 { 10 return ec2.EC2{ 11 LaunchConfigurations: getLaunchConfigurations(cfFile), 12 LaunchTemplates: getLaunchTemplates(cfFile), 13 Instances: getInstances(cfFile), 14 VPCs: nil, 15 NetworkACLs: getNetworkACLs(cfFile), 16 SecurityGroups: getSecurityGroups(cfFile), 17 Subnets: getSubnets(cfFile), 18 Volumes: getVolumes(cfFile), 19 } 20 }