Error executing action `add` on resource 'aws_security_group_rule[depi]' The required arguments are not required if the chef recipe is executed on an ec2 instance with the appropriate IAM role attached.