Skip to content
This repository was archived by the owner on Jun 5, 2020. It is now read-only.
This repository was archived by the owner on Jun 5, 2020. It is now read-only.

ec2_launchconfiguration did not support iam_instance_profile (IAM Role) #502

Open
@huyngo81

Description

@huyngo81

Hi Team,

Could you please provide the iam_instance_profile parameter for ec2_launchconfiguration?

`
ec2_launchconfiguration {"${env_value}-lc-${init_project_name}-${role_lc}":
name => "${env_value}-lc-${init_project_name}-${role_lc}",
security_groups => "sg_${env_value}_${init_project_name}_allow_all",
user_data => template('tepco/tepco-node-user-data-init-script.erb'),
key_name => "${env_value}-${init_project_name}_id_rsa-pub",
region => "$init_region",
instance_type => hiera('tepco.ec2.instance_type_nano','NAA'),
image_id => hiera('tepco.ec2.image_id','NAA'),
vpc => "vpc-${env_value}-${init_project_name}",
iam_instance_profile => "${init_iam_role_name}",
block_device_mappings => [
{
device_name => '/dev/sda1',
volume_size => 8,
delete_on_termination => 'true',
volume_type => 'gp2',
},
{
device_name => '/dev/sdb',
volume_size => 4,
delete_on_termination => 'true',
volume_type => 'gp2',
},
{
device_name => '/dev/sdc',
volume_size => 4,
delete_on_termination => 'true',
volume_type => 'gp2',
}
],

  }

`

Log:
[root@puppet vodo]# make create-vodo-stack Error: no parameter named 'iam_instance_profile' at /etc/puppetlabs/code/environments/vodo/modules/tepco/manifests/create_tepco_autoscaling_group.pp:4 on Ec2_launchconfiguration[dev-lc-electronic-jenkins] at /etc/puppetlabs/code/environments/vodo/modules/tepco/manifests/create_tepco_autoscaling_group.pp:4 on node puppet.novattitma.com make: *** [create-vodo-stack] Error 1
Check the parameter support link [https://forge.puppet.com/puppetlabs/aws/types] and don't see the iam_instance_profile parameter.

Thanks,
Huy

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions