Skip to content

Commit 517df81

Browse files
thomas.mckannaapatard
authored andcommitted
Allow for setting EC2 instance profile
1 parent d70bfa5 commit 517df81

File tree

2 files changed

+2
-0
lines changed
  • doc/ec2
  • src/molecule_plugins/ec2/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}

2 files changed

+2
-0
lines changed

doc/ec2/platforms.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ cloud_config Dictionary suitable for instance user_data
2929
connection_options See Connection Options section
3030
image AMI to use, see Image Selection section
3131
image_filters Filters to select AMI, see Image Selection section
32+
iam_instance_profile The IAM instance profile for the instance
3233
image_name Name of AMI, see Image Selection section
3334
image_owner Owner of AMI, see Image Selection section
3435
instance_type AWS EC2 instance type, defaults to t3a.medium

src/molecule_plugins/ec2/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/create.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@
186186
- name: Create ephemeral security groups (if needed)
187187
ec2_group:
188188
profile: "{{ item.aws_profile | default(omit) }}"
189+
iam_instance_profile : "{{ item.iam_instance_profile | default(omit) }}"
189190
region: "{{ item.region | default(omit) }}"
190191
vpc_id: "{{ item.vpc_id or vpc_subnet.vpc_id }}"
191192
name: "{{ item.security_group_name }}"

0 commit comments

Comments
 (0)