Closed
Labels
featureThis issue/PR relates to a feature requestThis issue/PR relates to a feature requesthas_prjirawaiting_on_contributorNeeds help. Feel free to engage to get things unblockedNeeds help. Feel free to engage to get things unblocked
Description
SUMMARY
Add to choose 'Metadata accessible' and 'Metadata version' options in the amazon.aws.ec2 module. When provisioning a new EC2 instance, currently there is no option to choose 'Metadata accessible' and 'Metadata version' options.
- amazon.aws.ec2 – create, terminate, start or stop an instance in ec2
https://docs.ansible.com/ansible/latest/collections/amazon/aws/ec2_module.html
Please refer to below screenshot for the 'Metadata accessible' and 'Metadata version' options in the ec2 launch page of AWS.
ISSUE TYPE
- Feature Idea
COMPONENT NAME
amazon.aws.ec2 module
ADDITIONAL INFORMATION
Metadata
Metadata
Assignees
Labels
featureThis issue/PR relates to a feature requestThis issue/PR relates to a feature requesthas_prjirawaiting_on_contributorNeeds help. Feel free to engage to get things unblockedNeeds help. Feel free to engage to get things unblocked

Activity
[-]When provisioning a new EC2 instance, need to choose some options[/-][+]Need to choose some options in the amazon.aws.ec2 module[/+]ansibullbot commentedon Jul 8, 2021
Files identified in the description:
None
If these files are inaccurate, please update the
component namesection of the description or use the!componentbot command.click here for bot help
tremble commentedon Jul 8, 2021
!component ec2_instance
tremble commentedon Jul 8, 2021
Hi @garamirseokim,
While we haven't officially started the deprecation process for the ec2 module, it's based upon the 'old' Amazon SDK (boto) rather than the 'new' SDK (boto3/botocore) and can generally be considered deprecated. The boto module doesn't support most modern features (including controlling the metadata services) and as such support for managing them will not be added to the ec2 module.
This would however be a good feature to add to the ec2_instance module.
The ec2_instance module largely replaces the functionality of the ec2 module and I would recommend you migrate if possible. (ec2_instance doesn't support throughput yet either, however support would be possible)
[-]Need to choose some options in the amazon.aws.ec2 module[/-][+]ec2_instance: Add support for controlling the Metadata options[/+][-]ec2_instance: Add support for controlling the Metadata options[/-][+]ec2: Add support for controlling the Metadata options[/+][-]ec2: Add support for controlling the Metadata options[/-][+]Need to choose some options in the amazon.aws.ec2 module[/+][-]Need to choose some options in the amazon.aws.ec2 module[/-][+]ec2_instance: Add support for controlling the Metadata options[/+]EC2_instance: add support for controlling metadata options (#414)
ci(deps): bump the github-actions group with 7 updates (#3048)