Score:0

Ansible EC2 metatadata options?

cn flag

I'm trying to get Ansible EC2 to provision instances that require IMDSV2.

Through the aws ec2 run-instances I'm able to do it by adding --metadata-options "HttpEndpoint=enabled,HttpTokens=required" to my command.

I'm not seeing a matching option in the Ansible EC2 module?

I'm sure I'm missing something basic.

Score:1
th flag

You're not missing anything, Ansible's AWS modules often fail to support new features in a timely manner due to a combination of technical debt and lack of active developers.

In this case support for metadata options was added five days ago in this commit.

Since this is not yet included in any release you would need to install the development version of this collection in order to use this feature.

cn flag
Any chance you happen to know how to get the development version of collections? :D
flowerysong avatar
th flag
https://docs.ansible.com/ansible/latest/user_guide/collections_using.html#installing-a-collection-from-a-git-repository (assuming you're using a version of Ansible that supports collections and are willing to run prerelease code.)
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.