Trying to clean up some testing for IaC using Inspec
, But hardcoding security_group_ids
is a no go for obvious reasons.
Im trying to use the ruby sdk instead to pull down the id
based of a name
(ie like you do with Terraform
data
resources).
But we work from aws named profiles
and while Inspec can connect to named profiles when i run the test ie :
inspec exec . -t aws://prod_account
Is it possible from Inspec
to link the call to aws named profiles
to ruby code within a control?