I have a Terraform script that creates several different AWS resources and links them together. One component is the aws_elastic_beanstalk_environment. It