Description
Summary
When I try to utilize one of the AL2023_ AMI types it says an invalid option, only allowed to use AL2_ types. I copied the AMI type from the console directly and AL2 is deprecated. Can we update to allow for the AL2023_ image types please!
Module: community.aws.eks_nodegroup
option: ami_type
Issue Type
Bug Report
Component Name
Module: community.aws.eks_nodegroup
Ansible Version
$ ansible --version
latest
Collection Versions
$ ansible-galaxy collection list
latest
AWS SDK versions
$ pip show boto boto3 botocore
latest
Configuration
- name: Create ARM64 Node Group for west region production EKS Cluster
when: deploymentEnvironment.name == 'production'
community.aws.eks_nodegroup:
cluster_name: "security-eks-west-{{ deploymentEnvironment.name }}"
name: "eks-west-{{ deploymentEnvironment.name }}-arm64-nodegroup"
node_role: "{{ SA_role_result.iam_role.arn }}"
subnets:
- "{{ west_1a_subnets.subnet.id }}"
- "{{ west_1c_subnets.subnet.id }}"
scaling_config:
desired_size: "{{ eks.nodes.production.arm64.count }}"
min_size: "{{ eks.nodes.production.arm64.min }}"
max_size: "{{ eks.nodes.production.arm64.max }}"
disk_size: "{{ eks.nodes.production.arm64.disk_size }}"
instance_types:
- "{{ eks.nodes.production.arm64.instance_type }}"
ami_type: "{{ eks.nodes.production.arm64.ami_type }}"
region: "{{ network.production.west.region }}"
state: present
wait: false
wait_timeout: 1200
tags:
environment: "{{ deploymentEnvironment.name }}"
team: security
profile: "{{ deploymentEnvironment.aws_profile }}"
register: west_arm_nodegroup
These are the two I tried for AMI type (injected by variable above)
- AL2023_x86_64_STANDARD
- AL2023_ARM_64_STANDARD
OS / Environment
No response
Steps to Reproduce
See above
Expected Results
I am allowed to use the following configuration:
eks:
version: "1.32"
nodes:
overwrite: false
timer: 960
staging:
arm64:
count: 5
min: 5
max: 10
disk_size: 100
instance_type: "t4g.2xlarge"
ami_type: "AL2023_ARM_64_STANDARD"
amd64:
count: 2
min: 1
max: 3
disk_size: 100
instance_type: "t4.2xlarge"
ami_type: "AL2023_x86_64_STANDARD"
production:
arm64:
count: 10
min: 5
max: 20
disk_size: 500
instance_type: "m5g.2xlarge"
ami_type: "AL2023_ARM_64_STANDARD"
amd64:
count: 2
min: 2
max: 10
disk_size: 500
instance_type: "t4.2xlarge"
ami_type: "AL2023_x86_64_STANDARD"
Actual Results
TASK [Create ARM64 Node Group for west region staging EKS Cluster] ***************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "value of ami_type must be one of: AL2_x86_64, AL2_x86_64_GPU, AL2_ARM_64, CUSTOM, BOTTLEROCKET_ARM_64, BOTTLEROCKET_x86_64, got: AL2023_ARM_64_STANDARD"}
Code of Conduct
- I agree to follow the Ansible Code of Conduct