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

rename aws_eks_cluster -> eks_cluster #1269

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ Name | Description
[community.aws.aws_direct_connect_gateway](https://github.com/ansible-collections/community.aws/blob/main/docs/community.aws.aws_direct_connect_gateway_module.rst)|Manage AWS Direct Connect gateway
[community.aws.aws_direct_connect_link_aggregation_group](https://github.com/ansible-collections/community.aws/blob/main/docs/community.aws.aws_direct_connect_link_aggregation_group_module.rst)|Manage Direct Connect LAG bundles
[community.aws.aws_direct_connect_virtual_interface](https://github.com/ansible-collections/community.aws/blob/main/docs/community.aws.aws_direct_connect_virtual_interface_module.rst)|Manage Direct Connect virtual interfaces
[community.aws.aws_eks_cluster](https://github.com/ansible-collections/community.aws/blob/main/docs/community.aws.aws_eks_cluster_module.rst)|Manage Elastic Kubernetes Service Clusters
[community.aws.aws_elasticbeanstalk_app](https://github.com/ansible-collections/community.aws/blob/main/docs/community.aws.aws_elasticbeanstalk_app_module.rst)|Create, update, and delete an elastic beanstalk application
[community.aws.aws_glue_connection](https://github.com/ansible-collections/community.aws/blob/main/docs/community.aws.aws_glue_connection_module.rst)|Manage an AWS Glue connection
[community.aws.aws_glue_job](https://github.com/ansible-collections/community.aws/blob/main/docs/community.aws.aws_glue_job_module.rst)|Manage an AWS Glue job
Expand Down Expand Up @@ -137,6 +136,7 @@ Name | Description
[community.aws.efs](https://github.com/ansible-collections/community.aws/blob/main/docs/community.aws.efs_module.rst)|create and maintain EFS file systems
[community.aws.efs_info](https://github.com/ansible-collections/community.aws/blob/main/docs/community.aws.efs_info_module.rst)|Get information about Amazon EFS file systems
[community.aws.efs_tag](https://github.com/ansible-collections/community.aws/blob/main/docs/community.aws.efs_tag_module.rst)|create and remove tags on Amazon EFS resources
[community.aws.eks_cluster](https://github.com/ansible-collections/community.aws/blob/main/docs/community.aws.eks_cluster_module.rst)|Manage Elastic Kubernetes Service (EKS) Clusters
[community.aws.eks_fargate_profile](https://github.com/ansible-collections/community.aws/blob/main/docs/community.aws.eks_fargate_profile_module.rst)|Manage EKS Fargate Profile
[community.aws.elasticache](https://github.com/ansible-collections/community.aws/blob/main/docs/community.aws.elasticache_module.rst)|Manage cache clusters in Amazon ElastiCache
[community.aws.elasticache_info](https://github.com/ansible-collections/community.aws/blob/main/docs/community.aws.elasticache_info_module.rst)|Retrieve information for AWS ElastiCache clusters
Expand Down
2 changes: 2 additions & 0 deletions changelogs/fragments/1269-rename_eks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- aws_eks_cluster - the ``aws_eks_cluster`` module has been renamed to ``eks_cluster``, ``aws_eks_cluster`` remains as an alias (https://github.com/ansible-collections/community.aws/pull/1269).
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
.. _community.aws.aws_eks_cluster_module:
.. _community.aws.eks_cluster_module:


*****************************
community.aws.aws_eks_cluster
*****************************
*************************
community.aws.eks_cluster
*************************

**Manage Elastic Kubernetes Service Clusters**
**Manage Elastic Kubernetes Service (EKS) Clusters**


Version added: 1.0.0
Expand All @@ -17,7 +17,8 @@ Version added: 1.0.0

Synopsis
--------
- Manage Elastic Kubernetes Service Clusters
- Manage Elastic Kubernetes Service (EKS) Clusters.
- Prior to release 5.0.0 this module was called ``community.aws.aws_eks_cluster``. The usage did not change.



Expand Down Expand Up @@ -155,7 +156,7 @@ Parameters
<td>
</td>
<td>
<div>Name of EKS cluster</div>
<div>Name of the EKS cluster.</div>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -202,7 +203,7 @@ Parameters
<td>
</td>
<td>
<div>ARN of IAM role used by the EKS cluster</div>
<div>ARN of IAM role used by the EKS cluster.</div>
</td>
</tr>
<tr>
Expand All @@ -218,7 +219,7 @@ Parameters
<td>
</td>
<td>
<div>list of security group names or IDs</div>
<div>List of security group names or IDs.</div>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -255,7 +256,7 @@ Parameters
</ul>
</td>
<td>
<div>desired state of the EKS cluster</div>
<div>Desired state of the EKS cluster.</div>
</td>
</tr>
<tr>
Expand All @@ -271,7 +272,7 @@ Parameters
<td>
</td>
<td>
<div>list of subnet IDs for the Kubernetes cluster</div>
<div>List of subnet IDs for the Kubernetes cluster.</div>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -305,7 +306,8 @@ Parameters
<td>
</td>
<td>
<div>Kubernetes version - defaults to latest</div>
<div>Kubernetes version.</div>
<div>Defaults to <code>latest</code>.</div>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -365,7 +367,7 @@ Examples
# Note: These examples do not set authentication details, see the AWS Guide for details.

- name: Create an EKS cluster
community.aws.aws_eks_cluster:
community.aws.eks_cluster:
name: my_cluster
version: 1.14
role_arn: my_eks_role
Expand All @@ -377,7 +379,7 @@ Examples
register: caller_facts

- name: Remove an EKS cluster
community.aws.aws_eks_cluster:
community.aws.eks_cluster:
name: my_cluster
wait: yes
state: absent
Expand Down Expand Up @@ -580,7 +582,7 @@ Common return values are documented `here <https://docs.ansible.com/ansible/late
<div>ARN of the IAM role used by the cluster</div>
<br/>
<div style="font-size: smaller"><b>Sample:</b></div>
<div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">arn:aws:iam::111111111111:role/aws_eks_cluster_role</div>
<div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">arn:aws:iam::111111111111:role/eks_cluster_role</div>
</td>
</tr>
<tr>
Expand Down
4 changes: 4 additions & 0 deletions meta/runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ action_groups:
- ecs_taskdefinition_info
- efs
- efs_info
- eks_cluster
- efs_tag
- eks_fargate_profile
- elasticache
Expand Down Expand Up @@ -214,6 +215,9 @@ plugin_routing:
aws_ses_identity:
# Deprecation for this alias should not *start* prior to 2024-09-01
redirect: community.aws.ses_identity
aws_eks_cluster:
# Deprecation for this alias should not *start* prior to 2024-09-01
redirect: community.aws.eks_cluster
aws_ses_identity_policy:
# Deprecation for this alias should not *start* prior to 2024-09-01
redirect: community.aws.ses_identity_policy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,35 +8,38 @@

DOCUMENTATION = r'''
---
module: aws_eks_cluster
module: eks_cluster
version_added: 1.0.0
short_description: Manage Elastic Kubernetes Service Clusters
short_description: Manage Elastic Kubernetes Service (EKS) Clusters
description:
- Manage Elastic Kubernetes Service Clusters

author: Will Thames (@willthames)

- Manage Elastic Kubernetes Service (EKS) Clusters.
- Prior to release 5.0.0 this module was called C(community.aws.aws_eks_cluster).
The usage did not change.
author:
- Will Thames (@willthames)
options:
name:
description: Name of EKS cluster
description: Name of the EKS cluster.
required: True
type: str
version:
description: Kubernetes version - defaults to latest
description:
- Kubernetes version.
- Defaults to C(latest).
type: str
role_arn:
description: ARN of IAM role used by the EKS cluster
description: ARN of IAM role used by the EKS cluster.
type: str
subnets:
description: list of subnet IDs for the Kubernetes cluster
description: List of subnet IDs for the Kubernetes cluster.
type: list
elements: str
security_groups:
description: list of security group names or IDs
description: List of security group names or IDs.
type: list
elements: str
state:
description: desired state of the EKS cluster
description: Desired state of the EKS cluster.
choices:
- absent
- present
Expand All @@ -55,16 +58,15 @@
default: 1200
type: int
extends_documentation_fragment:
- amazon.aws.aws
- amazon.aws.ec2

- amazon.aws.aws
- amazon.aws.ec2
'''

EXAMPLES = r'''
# Note: These examples do not set authentication details, see the AWS Guide for details.

- name: Create an EKS cluster
community.aws.aws_eks_cluster:
community.aws.eks_cluster:
name: my_cluster
version: 1.14
role_arn: my_eks_role
Expand All @@ -76,7 +78,7 @@
register: caller_facts

- name: Remove an EKS cluster
community.aws.aws_eks_cluster:
community.aws.eks_cluster:
name: my_cluster
wait: yes
state: absent
Expand Down Expand Up @@ -141,7 +143,7 @@
description: ARN of the IAM role used by the cluster
returned: when state is present
type: str
sample: arn:aws:iam::111111111111:role/aws_eks_cluster_role
sample: arn:aws:iam::111111111111:role/eks_cluster_role
status:
description: status of the EKS cluster
returned: when state is present
Expand Down