From dbafa7cf766c50b35619ca4f0e1b0f359b09cc6b Mon Sep 17 00:00:00 2001 From: Hector Rivas Gandara Date: Wed, 7 Dec 2016 15:49:02 +0000 Subject: [PATCH] Allow configure aws.iam_instance_profile_name Allow define the `aws.iam_instance_profile_name` by setting the environment variable `$BOSH_LITE_INSTANCE_PROFILE_NAME` --- packer/templates/vagrant-aws.tpl | 1 + 1 file changed, 1 insertion(+) diff --git a/packer/templates/vagrant-aws.tpl b/packer/templates/vagrant-aws.tpl index 878c1d1b..0930d867 100644 --- a/packer/templates/vagrant-aws.tpl +++ b/packer/templates/vagrant-aws.tpl @@ -38,6 +38,7 @@ Vagrant.configure('2') do |config| v.elastic_ip = env.fetch('BOSH_LITE_ELASTIC_IP', nil) v.security_groups = [env.fetch('BOSH_LITE_SECURITY_GROUP', 'inception')] v.subnet_id = env.fetch('BOSH_LITE_SUBNET_ID') if env.include?('BOSH_LITE_SUBNET_ID') + v.iam_instance_profile_name = env.fetch('BOSH_LITE_INSTANCE_PROFILE_NAME') if env.include?('BOSH_LITE_INSTANCE_PROFILE_NAME') v.tags = tags_from_environment(env) v.private_ip_address = env.fetch('BOSH_LITE_PRIVATE_IP') if env.include?('BOSH_LITE_PRIVATE_IP') end