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

Use community.aws.rds_instance module to create Aurora cluster #849

Closed
1 task done
tonysymbox opened this issue Jan 6, 2022 · 2 comments · Fixed by #687
Closed
1 task done

Use community.aws.rds_instance module to create Aurora cluster #849

tonysymbox opened this issue Jan 6, 2022 · 2 comments · Fixed by #687
Labels
docs feature This issue/PR relates to a feature request has_pr

Comments

@tonysymbox
Copy link

Summary

I am trying to create an Aurora DB/Cluster from new. I am not clear from the documentation how to do this.

The documentation refers to: "see rds_cluster to manage it" - what does this mean as I do not see any modules for rds_cluster?

Would appreciate your support

Thank you

Tony

Issue Type

Documentation Report

Component Name

community.aws.rds_instance

Ansible Version

$ ansible --version

Collection Versions

$ ansible-galaxy collection list

Configuration

$ ansible-config dump --only-changed

OS / Environment

No response

Additional Information

No response

Code of Conduct

  • I agree to follow the Ansible Code of Conduct
@tonysymbox tonysymbox changed the title Use module to create Aurora cluster Use community.aws.rds_instance module to create Aurora cluster Jan 6, 2022
@markuman
Copy link
Member

markuman commented Jan 6, 2022

Hm, that's a typo in the example section, because there is no rds_cluster module.
Basically you also use rds_instance to create a rds "cluster".

But "cluster" is here a buzzword. Because you always create a primary node. always. It does not matter if the engine is mariadb, mysql or aurora.
After the primary node is deployed. you can attach read replicas to it.

    - name: add  reader nodes.
      rds_instance:
        engine: aurora-mysql
        db_instance_identifier: "{{ extra_node_name }}"
        instance_type: "{{ extra_node_type }}"
        cluster_id: "{{ cluster }}"
        region: "{{ region }}"

The question is, what else do you want to "manage"?
You can force a failover also with rds_instance.
A snapshot is targeting with rds_instance_snapshot.

@markuman markuman added the docs label Jan 6, 2022
@markuman
Copy link
Member

markuman commented Jan 6, 2022

TIL: #687
rds_cluster is currently in development.

@markuman markuman added feature This issue/PR relates to a feature request has_pr labels Jan 6, 2022
@markuman markuman mentioned this issue Feb 1, 2022
1 task
softwarefactory-project-zuul bot pushed a commit that referenced this issue Apr 5, 2022
New modules for RDS clusters management

SUMMARY

Two new modules for RDS clusters management (rds_cluster ans rds_cluster_info)
Took over from: #262
Depends-On: ansible-collections/amazon.aws#553
Closes #849
Should also close #191

ISSUE TYPE


New Module Pull Request

Reviewed-by: Mark Woolley <mw@marknet15.com>
Reviewed-by: Alina Buzachis <None>
Reviewed-by: Markus Bergholz <git@osuv.de>
patchback bot pushed a commit that referenced this issue Apr 5, 2022
New modules for RDS clusters management

SUMMARY

Two new modules for RDS clusters management (rds_cluster ans rds_cluster_info)
Took over from: #262
Depends-On: ansible-collections/amazon.aws#553
Closes #849
Should also close #191

ISSUE TYPE

New Module Pull Request

Reviewed-by: Mark Woolley <mw@marknet15.com>
Reviewed-by: Alina Buzachis <None>
Reviewed-by: Markus Bergholz <git@osuv.de>
(cherry picked from commit 3661b1c)
softwarefactory-project-zuul bot pushed a commit that referenced this issue Apr 6, 2022
[PR #687/3661b1ca backport][stable-3] New modules for RDS clusters management

This is a backport of PR #687 as merged into main (3661b1c).
SUMMARY

Two new modules for RDS clusters management (rds_cluster ans rds_cluster_info)
Took over from: #262
Depends-On: ansible-collections/amazon.aws#553
Closes #849
Should also close #191

ISSUE TYPE


New Module Pull Request

Reviewed-by: Markus Bergholz <git@osuv.de>
abikouo pushed a commit to abikouo/community.aws that referenced this issue Oct 24, 2023
ec2_instance - deprecate purge_tags=False

Depends-On: ansible-collections#844
SUMMARY
Deprecate purge_tags=False for ec2_instance
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
plugins/modules/ec2_instance.py
ADDITIONAL INFORMATION

Reviewed-by: Alina Buzachis <None>
abikouo pushed a commit to abikouo/community.aws that referenced this issue Oct 24, 2023
…ns#856)

ec2_instance - Fix NoneType error on no input tags

SUMMARY
Reverts bug introduced in ansible-collections#849 which throws a NoneType exception when tags are not input
ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME
ec2_instance
ADDITIONAL INFORMATION
The error gets thrown when trying to wrap dict(None). See https://ansible.softwarefactory-project.io/zuul/build/5e37b5947f7045c6bf01e88f8ae5271f
TASK [elb_classic_lb : Wait for instance a] ************************************
task path: /home/zuul/.ansible/collections/ansible_collections/amazon/aws/tests/integration/targets/elb_classic_lb/tasks/simple_instances.yml:18
Using module file /home/zuul/.ansible/collections/ansible_collections/amazon/aws/plugins/modules/ec2_instance.py
Pipelining is enabled.
<testhost> ESTABLISH LOCAL CONNECTION FOR USER: zuul
<testhost> EXEC /bin/sh -c 'ANSIBLE_DEBUG_BOTOCORE_LOGS=True /home/zuul/venv/bin/python && sleep 0'
The full traceback is:
Traceback (most recent call last):
  File "<stdin>", line 121, in <module>
  File "<stdin>", line 113, in _ansiballz_main
  File "<stdin>", line 61, in invoke_module
  File "/usr/lib64/python3.8/runpy.py", line 207, in run_module
    return _run_module_code(code, init_globals, run_name, mod_spec)
  File "/usr/lib64/python3.8/runpy.py", line 97, in _run_module_code
    _run_code(code, mod_globals, init_globals,
  File "/usr/lib64/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/tmp/ansible_ec2_instance_payload_ofa2yzhm/ansible_ec2_instance_payload.zip/ansible_collections/amazon/aws/plugins/modules/ec2_instance.py", line 2105, in <module>
  File "/tmp/ansible_ec2_instance_payload_ofa2yzhm/ansible_ec2_instance_payload.zip/ansible_collections/amazon/aws/plugins/modules/ec2_instance.py", line 2097, in main
  File "/tmp/ansible_ec2_instance_payload_ofa2yzhm/ansible_ec2_instance_payload.zip/ansible_collections/amazon/aws/plugins/modules/ec2_instance.py", line 1783, in handle_existing
TypeError: 'NoneType' object is not iterable
fatal: [testhost]: FAILED! => {
    "changed": false,
    "module_stderr": "Traceback (most recent call last):\n  File \"<stdin>\", line 121, in <module>\n  File \"<stdin>\", line 113, in _ansiballz_main\n  File \"<stdin>\", line 61, in invoke_module\n  File \"/usr/lib64/python3.8/runpy.py\", line 207, in run_module\n    return _run_module_code(code, init_globals, run_name, mod_spec)\n  File \"/usr/lib64/python3.8/runpy.py\", line 97, in _run_module_code\n    _run_code(code, mod_globals, init_globals,\n  File \"/usr/lib64/python3.8/runpy.py\", line 87, in _run_code\n    exec(code, run_globals)\n  File \"/tmp/ansible_ec2_instance_payload_ofa2yzhm/ansible_ec2_instance_payload.zip/ansible_collections/amazon/aws/plugins/modules/ec2_instance.py\", line 2105, in <module>\n  File \"/tmp/ansible_ec2_instance_payload_ofa2yzhm/ansible_ec2_instance_payload.zip/ansible_collections/amazon/aws/plugins/modules/ec2_instance.py\", line 2097, in main\n  File \"/tmp/ansible_ec2_instance_payload_ofa2yzhm/ansible_ec2_instance_payload.zip/ansible_collections/amazon/aws/plugins/modules/ec2_instance.py\", line 1783, in handle_existing\nTypeError: 'NoneType' object is not iterable\n",
    "module_stdout": "",
    "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
    "rc": 1
}

Reviewed-by: Mark Chappell <None>
Reviewed-by: Joseph Torcasso <None>
abikouo pushed a commit to abikouo/community.aws that referenced this issue Oct 24, 2023
New modules for RDS clusters management

SUMMARY

Two new modules for RDS clusters management (rds_cluster ans rds_cluster_info)
Took over from: ansible-collections#262
Depends-On: ansible-collections/amazon.aws#553
Closes ansible-collections#849
Should also close ansible-collections#191

ISSUE TYPE

New Module Pull Request

Reviewed-by: Mark Woolley <mw@marknet15.com>
Reviewed-by: Alina Buzachis <None>
Reviewed-by: Markus Bergholz <git@osuv.de>

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections@3661b1c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs feature This issue/PR relates to a feature request has_pr
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants