Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ec2_instance module doesn't have count #536

Closed
1 task done
davidtluong opened this issue Oct 18, 2021 · 2 comments · Fixed by #539
Closed
1 task done

ec2_instance module doesn't have count #536

davidtluong opened this issue Oct 18, 2021 · 2 comments · Fixed by #539
Assignees
Labels
bug This issue/PR relates to a bug jira module module plugins plugin (any type)

Comments

@davidtluong
Copy link

davidtluong commented Oct 18, 2021

Summary

ec2_instance module doesn't have count parameter like ec2 module does

Issue Type

Bug Report

Component Name

ec2_instance

Ansible Version

$ ansible --version
2.11

Collection Versions

$ ansible-galaxy collection list
amazon.aws

AWS SDK versions

$ pip show boto boto3 botocore

Configuration

$ ansible-config dump --only-changed

OS / Environment

RHEL 8

Steps to Reproduce

- name: Create ec2 instance(s) for controller hybrid node(s)
  amazon.aws.ec2_instance:
    key_name: "{{ key_name }}"
    instance_type: t2.large
    wait: yes
    count: "{{ count | default('1') }}"
    region: "{{ region }}"
    network:
      assign_public_ip: yes
      group: lab-sg
    vpc_subnet_id: "{{ subnet }}"
    image_id: "{{ ami }}"
    tags:
        Name: "{{ vm_name }} controller hybrid"
        lab_managed: lab_managed

Expected Results

It provisions correctly

Actual Results

Unsupported parameters for (amazon.aws.ec2_instance) module: count

Code of Conduct

  • I agree to follow the Ansible Code of Conduct
@ansibullbot
Copy link

Files identified in the description:

If these files are inaccurate, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibullbot
Copy link

@ansibullbot ansibullbot added bug This issue/PR relates to a bug module module needs_triage plugins plugin (any type) labels Oct 18, 2021
@mandar242 mandar242 self-assigned this Oct 18, 2021
@mandar242 mandar242 added the jira label Nov 10, 2021
ansible-zuul bot pushed a commit that referenced this issue Nov 30, 2021
ec2_instance: Add count parameter to ec2_instance

SUMMARY


Adding min_count and max_count parameter to ec2_instance.
Fixes #536.
ISSUE TYPE


Feature Pull Request

COMPONENT NAME

ec2_instance

Reviewed-by: Jill R <None>
Reviewed-by: Mark Chappell <None>
Reviewed-by: Mandar Kulkarni <[email protected]>
Reviewed-by: None <None>
patchback bot pushed a commit that referenced this issue Nov 30, 2021
ec2_instance: Add count parameter to ec2_instance

SUMMARY

Adding min_count and max_count parameter to ec2_instance.
Fixes #536.
ISSUE TYPE

Feature Pull Request

COMPONENT NAME

ec2_instance

Reviewed-by: Jill R <None>
Reviewed-by: Mark Chappell <None>
Reviewed-by: Mandar Kulkarni <[email protected]>
Reviewed-by: None <None>
(cherry picked from commit 760186c)
tremble pushed a commit that referenced this issue Dec 1, 2021
ec2_instance: Add count parameter to ec2_instance

SUMMARY

Adding min_count and max_count parameter to ec2_instance.
Fixes #536.
ISSUE TYPE

Feature Pull Request

COMPONENT NAME

ec2_instance

Reviewed-by: Jill R <None>
Reviewed-by: Mark Chappell <None>
Reviewed-by: Mandar Kulkarni <[email protected]>
Reviewed-by: None <None>
(cherry picked from commit 760186c)

Co-authored-by: Mandar Kulkarni <[email protected]>
abikouo pushed a commit to abikouo/amazon.aws that referenced this issue Sep 18, 2023
…ng_info/retries

ec2_vpc_peering_info - Add AWSRetry decorator

Reviewed-by: https://github.com/apps/ansible-zuul
abikouo pushed a commit to abikouo/amazon.aws that referenced this issue Oct 24, 2023
…ng_info/retries

ec2_vpc_peering_info - Add AWSRetry decorator

Reviewed-by: https://github.com/apps/ansible-zuul
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug jira module module plugins plugin (any type)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants