Skip to content

Commit

Permalink
update param name
Browse files Browse the repository at this point in the history
  • Loading branch information
mandar242 committed Nov 21, 2024
1 parent dad97f8 commit e8cf01f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions roles/ec2_instance_create/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ The following variables can be set in the role to customize EC2 instance creatio
* **ec2_instance_create_vpc_subnet_id**: (Required)
The ID of the VPC subnet in which the instance will be launched.

* **ec2_instance_create_external_sg**: (Optional)
The ID of the security group to be associated with EC2 instance.
* **ec2_instance_create_external_sg_id**: (Optional)
The ID or name of the security group to be associated with EC2 instance.

* **ec2_instance_create_tags**: (Optional)
A dictionary of tags to assign to the EC2 instance.
Expand Down
3 changes: 1 addition & 2 deletions roles/ec2_instance_create/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
image_id: "{{ ec2_instance_create_ami_id }}"
key_name: "{{ ec2_instance_create_key_name }}"
vpc_subnet_id: "{{ ec2_instance_create_vpc_subnet_id }}"
security_groups:
- "{{ ec2_instance_create_external_sg | default(omit) }}"
security_group: "{{ ec2_instance_create_external_sg_id | default(omit) }}"
tags: "{{ ec2_instance_create_tags | default(omit) }}"
wait: "{{ ec2_instance_create_wait_for_boot }}"
register: ec2_instance
Expand Down

0 comments on commit e8cf01f

Please sign in to comment.