-
Notifications
You must be signed in to change notification settings - Fork 342
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
Ec2 ami imdsv2 enable #2310
base: main
Are you sure you want to change the base?
Ec2 ami imdsv2 enable #2310
Conversation
- Force IMDS v2 on the AMI | ||
- See the AWS documentation for more detail U(https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-IMDS-new-instances.html#configure-IMDS-new-instances-ami-configuration). | ||
type: bool | ||
default: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
default: false | |
default: false | |
version_added: 9.0.0 |
@@ -844,6 +869,14 @@ def set_launch_permissions(connection, launch_permissions, image_id): | |||
except AnsibleEC2Error as e: | |||
raise Ec2AmiFailure(f"Error setting launch permissions for image {image_id}", e) | |||
|
|||
@staticmethod | |||
def set_imdsv2(connection, image_id): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: API does not support removing the attribute once set.
Build failed. ✔️ ansible-galaxy-importer SUCCESS in 5m 01s |
633ef23
to
4b08960
Compare
Build failed. ✔️ ansible-galaxy-importer SUCCESS in 4m 40s |
Found an issue while testing this. Will reopen once fixed |
02d0f07
to
0db9eae
Compare
Docs Build 📝Thank you for contribution!✨ The docsite for this PR is available for download as an artifact from this run: You can compare to the docs for the File changes:
Click to see the diff comparison.NOTE: only file modifications are shown here. New and deleted files are excluded. diff --git a/home/runner/work/amazon.aws/amazon.aws/docsbuild/base/collections/amazon/aws/ec2_ami_info_module.html b/home/runner/work/amazon.aws/amazon.aws/docsbuild/head/collections/amazon/aws/ec2_ami_info_module.html
index 166faa9..79d4b2e 100644
--- a/home/runner/work/amazon.aws/amazon.aws/docsbuild/base/collections/amazon/aws/ec2_ami_info_module.html
+++ b/home/runner/work/amazon.aws/amazon.aws/docsbuild/head/collections/amazon/aws/ec2_ami_info_module.html
@@ -524,6 +524,14 @@ see <a class="reference internal" href="#ansible-collections-amazon-aws-ec2-ami-
</div></td>
</tr>
<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="return-images/imdsv2_enabled"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-ec2-ami-info-module-return-images-imdsv2-enabled"><strong>imdsv2_enabled</strong></p>
+<a class="ansibleOptionLink" href="#return-images/imdsv2_enabled" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">boolean</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>Whether the image has IMDSv2 enabled or not.</p>
+<p class="ansible-option-line"><strong class="ansible-option-returned-bold">Returned:</strong> When <code class="ansible-option-value docutils literal notranslate"><a class="reference internal" href="#ansible-collections-amazon-aws-ec2-ami-info-module-parameter-describe-image-attributes"><span class="std std-ref"><span class="pre">describe_image_attributes=true</span></span></a></code>.</p>
+</div></td>
+</tr>
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
<div class="ansibleOptionAnchor" id="return-images/launch_permissions"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-ec2-ami-info-module-return-images-launch-permissions"><strong>launch_permissions</strong></p>
<a class="ansibleOptionLink" href="#return-images/launch_permissions" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">list</span> / <span class="ansible-option-elements">elements=dictionary</span></p>
</div></td>
@@ -532,7 +540,7 @@ see <a class="reference internal" href="#ansible-collections-amazon-aws-ec2-ami-
<p class="ansible-option-line ansible-option-sample"><strong class="ansible-option-sample-bold">Sample:</strong> <code class="ansible-option-sample docutils literal notranslate"><span class="pre">[{"group":</span> <span class="pre">"all"},</span> <span class="pre">{"user_id":</span> <span class="pre">"123456789012"}]</span></code></p>
</div></td>
</tr>
-<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
<div class="ansibleOptionAnchor" id="return-images/launch_permissions/group"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-ec2-ami-info-module-return-images-launch-permissions-group"><strong>group</strong></p>
<a class="ansibleOptionLink" href="#return-images/launch_permissions/group" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
</div></td>
@@ -540,7 +548,7 @@ see <a class="reference internal" href="#ansible-collections-amazon-aws-ec2-ami-
<p class="ansible-option-line"><strong class="ansible-option-returned-bold">Returned:</strong> success</p>
</div></td>
</tr>
-<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
<div class="ansibleOptionAnchor" id="return-images/launch_permissions/user_id"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-ec2-ami-info-module-return-images-launch-permissions-user-id"><strong>user_id</strong></p>
<a class="ansibleOptionLink" href="#return-images/launch_permissions/user_id" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
</div></td>
@@ -548,7 +556,7 @@ see <a class="reference internal" href="#ansible-collections-amazon-aws-ec2-ami-
<p class="ansible-option-line"><strong class="ansible-option-returned-bold">Returned:</strong> success</p>
</div></td>
</tr>
-<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
<div class="ansibleOptionAnchor" id="return-images/name"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-ec2-ami-info-module-return-images-name"><strong>name</strong></p>
<a class="ansibleOptionLink" href="#return-images/name" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
</div></td>
@@ -557,7 +565,7 @@ see <a class="reference internal" href="#ansible-collections-amazon-aws-ec2-ami-
<p class="ansible-option-line ansible-option-sample"><strong class="ansible-option-sample-bold">Sample:</strong> <code class="ansible-option-sample docutils literal notranslate"><span class="pre">"Webapp"</span></code></p>
</div></td>
</tr>
-<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
<div class="ansibleOptionAnchor" id="return-images/owner_id"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-ec2-ami-info-module-return-images-owner-id"><strong>owner_id</strong></p>
<a class="ansibleOptionLink" href="#return-images/owner_id" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
</div></td>
@@ -566,7 +574,7 @@ see <a class="reference internal" href="#ansible-collections-amazon-aws-ec2-ami-
<p class="ansible-option-line ansible-option-sample"><strong class="ansible-option-sample-bold">Sample:</strong> <code class="ansible-option-sample docutils literal notranslate"><span class="pre">"123456789012"</span></code></p>
</div></td>
</tr>
-<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
<div class="ansibleOptionAnchor" id="return-images/platform_details"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-ec2-ami-info-module-return-images-platform-details"><strong>platform_details</strong></p>
<a class="ansibleOptionLink" href="#return-images/platform_details" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
</div></td>
@@ -575,7 +583,7 @@ see <a class="reference internal" href="#ansible-collections-amazon-aws-ec2-ami-
<p class="ansible-option-line ansible-option-sample"><strong class="ansible-option-sample-bold">Sample:</strong> <code class="ansible-option-sample docutils literal notranslate"><span class="pre">"Windows"</span></code></p>
</div></td>
</tr>
-<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
<div class="ansibleOptionAnchor" id="return-images/public"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-ec2-ami-info-module-return-images-public"><strong>public</strong></p>
<a class="ansibleOptionLink" href="#return-images/public" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">boolean</span></p>
</div></td>
@@ -584,7 +592,7 @@ see <a class="reference internal" href="#ansible-collections-amazon-aws-ec2-ami-
<p class="ansible-option-line ansible-option-sample"><strong class="ansible-option-sample-bold">Sample:</strong> <code class="ansible-option-sample docutils literal notranslate"><span class="pre">true</span></code></p>
</div></td>
</tr>
-<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
<div class="ansibleOptionAnchor" id="return-images/root_device_name"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-ec2-ami-info-module-return-images-root-device-name"><strong>root_device_name</strong></p>
<a class="ansibleOptionLink" href="#return-images/root_device_name" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
</div></td>
@@ -593,7 +601,7 @@ see <a class="reference internal" href="#ansible-collections-amazon-aws-ec2-ami-
<p class="ansible-option-line ansible-option-sample"><strong class="ansible-option-sample-bold">Sample:</strong> <code class="ansible-option-sample docutils literal notranslate"><span class="pre">"/dev/sda1"</span></code></p>
</div></td>
</tr>
-<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
<div class="ansibleOptionAnchor" id="return-images/root_device_type"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-ec2-ami-info-module-return-images-root-device-type"><strong>root_device_type</strong></p>
<a class="ansibleOptionLink" href="#return-images/root_device_type" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
</div></td>
@@ -602,7 +610,7 @@ see <a class="reference internal" href="#ansible-collections-amazon-aws-ec2-ami-
<p class="ansible-option-line ansible-option-sample"><strong class="ansible-option-sample-bold">Sample:</strong> <code class="ansible-option-sample docutils literal notranslate"><span class="pre">"ebs"</span></code></p>
</div></td>
</tr>
-<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
<div class="ansibleOptionAnchor" id="return-images/sriov_net_support"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-ec2-ami-info-module-return-images-sriov-net-support"><strong>sriov_net_support</strong></p>
<a class="ansibleOptionLink" href="#return-images/sriov_net_support" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
</div></td>
@@ -611,7 +619,7 @@ see <a class="reference internal" href="#ansible-collections-amazon-aws-ec2-ami-
<p class="ansible-option-line ansible-option-sample"><strong class="ansible-option-sample-bold">Sample:</strong> <code class="ansible-option-sample docutils literal notranslate"><span class="pre">"simple"</span></code></p>
</div></td>
</tr>
-<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
<div class="ansibleOptionAnchor" id="return-images/state"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-ec2-ami-info-module-return-images-state"><strong>state</strong></p>
<a class="ansibleOptionLink" href="#return-images/state" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
</div></td>
@@ -620,7 +628,7 @@ see <a class="reference internal" href="#ansible-collections-amazon-aws-ec2-ami-
<p class="ansible-option-line ansible-option-sample"><strong class="ansible-option-sample-bold">Sample:</strong> <code class="ansible-option-sample docutils literal notranslate"><span class="pre">"available"</span></code></p>
</div></td>
</tr>
-<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
<div class="ansibleOptionAnchor" id="return-images/tags"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-ec2-ami-info-module-return-images-tags"><strong>tags</strong></p>
<a class="ansibleOptionLink" href="#return-images/tags" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">dictionary</span></p>
</div></td>
@@ -628,7 +636,7 @@ see <a class="reference internal" href="#ansible-collections-amazon-aws-ec2-ami-
<p class="ansible-option-line"><strong class="ansible-option-returned-bold">Returned:</strong> always</p>
</div></td>
</tr>
-<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
<div class="ansibleOptionAnchor" id="return-images/usage_operation"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-ec2-ami-info-module-return-images-usage-operation"><strong>usage_operation</strong></p>
<a class="ansibleOptionLink" href="#return-images/usage_operation" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
</div></td>
@@ -637,7 +645,7 @@ see <a class="reference internal" href="#ansible-collections-amazon-aws-ec2-ami-
<p class="ansible-option-line ansible-option-sample"><strong class="ansible-option-sample-bold">Sample:</strong> <code class="ansible-option-sample docutils literal notranslate"><span class="pre">"RunInstances"</span></code></p>
</div></td>
</tr>
-<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
<div class="ansibleOptionAnchor" id="return-images/virtualization_type"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-ec2-ami-info-module-return-images-virtualization-type"><strong>virtualization_type</strong></p>
<a class="ansibleOptionLink" href="#return-images/virtualization_type" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
</div></td>
diff --git a/home/runner/work/amazon.aws/amazon.aws/docsbuild/base/collections/amazon/aws/ec2_ami_module.html b/home/runner/work/amazon.aws/amazon.aws/docsbuild/head/collections/amazon/aws/ec2_ami_module.html
index 6bd6147..006bdd7 100644
--- a/home/runner/work/amazon.aws/amazon.aws/docsbuild/base/collections/amazon/aws/ec2_ami_module.html
+++ b/home/runner/work/amazon.aws/amazon.aws/docsbuild/head/collections/amazon/aws/ec2_ami_module.html
@@ -408,20 +408,35 @@ see <a class="reference internal" href="#ansible-collections-amazon-aws-ec2-ami-
</div></td>
</tr>
<tr class="row-odd"><td><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="parameter-imdsv2_enable"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-ec2-ami-module-parameter-imdsv2-enable"><strong>imdsv2_enable</strong></p>
+<a class="ansibleOptionLink" href="#parameter-imdsv2_enable" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">boolean</span></p>
+<p><em class="ansible-option-versionadded">added in amazon.aws 9.0.0</em></p>
+</div></td>
+<td><div class="ansible-option-cell"><p>Force IMDS v2 on the AMI</p>
+<p>See the AWS documentation for more detail</p>
+<p><a class="reference external" href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-IMDS-new-instances.html#configure-IMDS-new-instances-ami-configuration">https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-IMDS-new-instances.html#configure-IMDS-new-instances-ami-configuration</a>.</p>
+<p class="ansible-option-line"><strong class="ansible-option-choices">Choices:</strong></p>
+<ul class="simple">
+<li><p><code class="ansible-option-default-bold docutils literal notranslate"><strong><span class="pre">false</span></strong></code> <span class="ansible-option-choices-default-mark">← (default)</span></p></li>
+<li><p><code class="ansible-option-choices-entry docutils literal notranslate"><span class="pre">true</span></code></p></li>
+</ul>
+</div></td>
+</tr>
+<tr class="row-even"><td><div class="ansible-option-cell">
<div class="ansibleOptionAnchor" id="parameter-instance_id"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-ec2-ami-module-parameter-instance-id"><strong>instance_id</strong></p>
<a class="ansibleOptionLink" href="#parameter-instance_id" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
</div></td>
<td><div class="ansible-option-cell"><p>Instance ID to create the AMI from.</p>
</div></td>
</tr>
-<tr class="row-even"><td><div class="ansible-option-cell">
+<tr class="row-odd"><td><div class="ansible-option-cell">
<div class="ansibleOptionAnchor" id="parameter-kernel_id"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-ec2-ami-module-parameter-kernel-id"><strong>kernel_id</strong></p>
<a class="ansibleOptionLink" href="#parameter-kernel_id" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
</div></td>
<td><div class="ansible-option-cell"><p>The target kernel id of the image to register.</p>
</div></td>
</tr>
-<tr class="row-odd"><td><div class="ansible-option-cell">
+<tr class="row-even"><td><div class="ansible-option-cell">
<div class="ansibleOptionAnchor" id="parameter-launch_permissions"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-ec2-ami-module-parameter-launch-permissions"><strong>launch_permissions</strong></p>
<a class="ansibleOptionLink" href="#parameter-launch_permissions" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">dictionary</span></p>
</div></td>
@@ -429,14 +444,14 @@ see <a class="reference internal" href="#ansible-collections-amazon-aws-ec2-ami-
<p>You must pass all desired launch permissions if you wish to modify existing launch permissions (passing just groups will remove all users).</p>
</div></td>
</tr>
-<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
<div class="ansibleOptionAnchor" id="parameter-launch_permissions/group_names"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-ec2-ami-module-parameter-launch-permissions-group-names"><strong>group_names</strong></p>
<a class="ansibleOptionLink" href="#parameter-launch_permissions/group_names" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">list</span> / <span class="ansible-option-elements">elements=string</span></p>
</div></td>
<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>List of group names.</p>
</div></td>
</tr>
-<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
<div class="ansibleOptionAnchor" id="parameter-launch_permissions/org_arns"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-ec2-ami-module-parameter-launch-permissions-org-arns"><strong>org_arns</strong></p>
<a class="ansibleOptionLink" href="#parameter-launch_permissions/org_arns" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">list</span> / <span class="ansible-option-elements">elements=string</span></p>
<p><em class="ansible-option-versionadded">added in amazon.aws 6.5.0</em></p>
@@ -444,7 +459,7 @@ see <a class="reference internal" href="#ansible-collections-amazon-aws-ec2-ami-
<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>List of The Amazon Resource Name(s) (ARN) of organization(s).</p>
</div></td>
</tr>
-<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
<div class="ansibleOptionAnchor" id="parameter-launch_permissions/org_unit_arns"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-ec2-ami-module-parameter-launch-permissions-org-unit-arns"><strong>org_unit_arns</strong></p>
<a class="ansibleOptionLink" href="#parameter-launch_permissions/org_unit_arns" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">list</span> / <span class="ansible-option-elements">elements=string</span></p>
<p><em class="ansible-option-versionadded">added in amazon.aws 6.5.0</em></p>
@@ -452,21 +467,21 @@ see <a class="reference internal" href="#ansible-collections-amazon-aws-ec2-ami-
<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>List of The Amazon Resource Name(s) (ARN) of an organizational unit(s) (OU).</p>
</div></td>
</tr>
-<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
<div class="ansibleOptionAnchor" id="parameter-launch_permissions/user_ids"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-ec2-ami-module-parameter-launch-permissions-user-ids"><strong>user_ids</strong></p>
<a class="ansibleOptionLink" href="#parameter-launch_permissions/user_ids" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">list</span> / <span class="ansible-option-elements">elements=string</span></p>
</div></td>
<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>List of account IDs.</p>
</div></td>
</tr>
-<tr class="row-even"><td><div class="ansible-option-cell">
+<tr class="row-odd"><td><div class="ansible-option-cell">
<div class="ansibleOptionAnchor" id="parameter-name"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-ec2-ami-module-parameter-name"><strong>name</strong></p>
<a class="ansibleOptionLink" href="#parameter-name" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
</div></td>
<td><div class="ansible-option-cell"><p>The name of the new AMI.</p>
</div></td>
</tr>
-<tr class="row-odd"><td><div class="ansible-option-cell">
+<tr class="row-even"><td><div class="ansible-option-cell">
<div class="ansibleOptionAnchor" id="parameter-no_reboot"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-ec2-ami-module-parameter-no-reboot"><strong>no_reboot</strong></p>
<a class="ansibleOptionLink" href="#parameter-no_reboot" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">boolean</span></p>
</div></td>
@@ -478,7 +493,7 @@ see <a class="reference internal" href="#ansible-collections-amazon-aws-ec2-ami-
</ul>
</div></td>
</tr>
-<tr class="row-even"><td><div class="ansible-option-cell">
+<tr class="row-odd"><td><div class="ansible-option-cell">
<div class="ansibleOptionAnchor" id="parameter-profile"></div>
<div class="ansibleOptionAnchor" id="parameter-aws_profile"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-ec2-ami-module-parameter-profile"><span id="ansible-collections-amazon-aws-ec2-ami-module-parameter-aws-profile"></span><strong>profile</strong></p>
<a class="ansibleOptionLink" href="#parameter-profile" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-aliases">aliases: aws_profile</span></p>
@@ -490,7 +505,7 @@ see <a class="reference internal" href="#ansible-collections-amazon-aws-ec2-ami-
<p>The <em>profile</em> option is mutually exclusive with the <em>aws_access_key</em>, <em>aws_secret_key</em> and <em>security_token</em> options.</p>
</div></td>
</tr>
-<tr class="row-odd"><td><div class="ansible-option-cell">
+<tr class="row-even"><td><div class="ansible-option-cell">
<div class="ansibleOptionAnchor" id="parameter-purge_tags"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-ec2-ami-module-parameter-purge-tags"><strong>purge_tags</strong></p>
<a class="ansibleOptionLink" href="#parameter-purge_tags" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">boolean</span></p>
</div></td>
@@ -504,14 +519,14 @@ see <a class="reference internal" href="#ansible-collections-amazon-aws-ec2-ami-
</ul>
</div></td>
</tr>
-<tr class="row-even"><td><div class="ansible-option-cell">
+<tr class="row-odd"><td><div class="ansible-option-cell">
<div class="ansibleOptionAnchor" id="parameter-ramdisk_id"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-ec2-ami-module-parameter-ramdisk-id"><strong>ramdisk_id</strong></p>
<a class="ansibleOptionLink" href="#parameter-ramdisk_id" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
</div></td>
<td><div class="ansible-option-cell"><p>The ID of the RAM disk.</p>
</div></td>
</tr>
-<tr class="row-odd"><td><div class="ansible-option-cell">
+<tr class="row-even"><td><div class="ansible-option-cell">
<div class="ansibleOptionAnchor" id="parameter-region"></div>
<div class="ansibleOptionAnchor" id="parameter-aws_region"></div>
<div class="ansibleOptionAnchor" id="parameter-ec2_region"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-ec2-ami-module-parameter-region"><span id="ansible-collections-amazon-aws-ec2-ami-module-parameter-ec2-region"></span><span id="ansible-collections-amazon-aws-ec2-ami-module-parameter-aws-region"></span><strong>region</strong></p>
@@ -526,14 +541,14 @@ see <a class="reference internal" href="#ansible-collections-amazon-aws-ec2-ami-
<p>Support for the <code class="docutils literal notranslate"><span class="pre">EC2_REGION</span></code> environment variable has been deprecated and will be removed in a release after 2024-12-01.</p>
</div></td>
</tr>
-<tr class="row-even"><td><div class="ansible-option-cell">
+<tr class="row-odd"><td><div class="ansible-option-cell">
<div class="ansibleOptionAnchor" id="parameter-root_device_name"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-ec2-ami-module-parameter-root-device-name"><strong>root_device_name</strong></p>
<a class="ansibleOptionLink" href="#parameter-root_device_name" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
</div></td>
<td><div class="ansible-option-cell"><p>The root device name of the image to register.</p>
</div></td>
</tr>
-<tr class="row-odd"><td><div class="ansible-option-cell">
+<tr class="row-even"><td><div class="ansible-option-cell">
<div class="ansibleOptionAnchor" id="parameter-secret_key"></div>
<div class="ansibleOptionAnchor" id="parameter-aws_secret_access_key"></div>
<div class="ansibleOptionAnchor" id="parameter-aws_secret_key"></div>
@@ -550,7 +565,7 @@ see <a class="reference internal" href="#ansible-collections-amazon-aws-ec2-ami-
<p>Support for the <code class="docutils literal notranslate"><span class="pre">EC2_SECRET_KEY</span></code> environment variable has been deprecated and will be removed in a release after 2024-12-01.</p>
</div></td>
</tr>
-<tr class="row-even"><td><div class="ansible-option-cell">
+<tr class="row-odd"><td><div class="ansible-option-cell">
<div class="ansibleOptionAnchor" id="parameter-session_token"></div>
<div class="ansibleOptionAnchor" id="parameter-aws_session_token"></div>
<div class="ansibleOptionAnchor" id="parameter-security_token"></div>
@@ -568,14 +583,14 @@ see <a class="reference internal" href="#ansible-collections-amazon-aws-ec2-ami-
<p>Support for the <code class="docutils literal notranslate"><span class="pre">EC2_SECRET_KEY</span></code> and <code class="docutils literal notranslate"><span class="pre">AWS_SECURITY_TOKEN</span></code> environment variables has been deprecated and will be removed in a release after 2024-12-01.</p>
</div></td>
</tr>
-<tr class="row-odd"><td><div class="ansible-option-cell">
+<tr class="row-even"><td><div class="ansible-option-cell">
<div class="ansibleOptionAnchor" id="parameter-sriov_net_support"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-ec2-ami-module-parameter-sriov-net-support"><strong>sriov_net_support</strong></p>
<a class="ansibleOptionLink" href="#parameter-sriov_net_support" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
</div></td>
<td><div class="ansible-option-cell"><p>Set to simple to enable enhanced networking with the Intel 82599 Virtual Function interface for the AMI and any instances that you launch from the AMI.</p>
</div></td>
</tr>
-<tr class="row-even"><td><div class="ansible-option-cell">
+<tr class="row-odd"><td><div class="ansible-option-cell">
<div class="ansibleOptionAnchor" id="parameter-state"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-ec2-ami-module-parameter-state"><strong>state</strong></p>
<a class="ansibleOptionLink" href="#parameter-state" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
</div></td>
@@ -587,7 +602,7 @@ see <a class="reference internal" href="#ansible-collections-amazon-aws-ec2-ami-
</ul>
</div></td>
</tr>
-<tr class="row-odd"><td><div class="ansible-option-cell">
+<tr class="row-even"><td><div class="ansible-option-cell">
<div class="ansibleOptionAnchor" id="parameter-tags"></div>
<div class="ansibleOptionAnchor" id="parameter-resource_tags"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-ec2-ami-module-parameter-tags"><span id="ansible-collections-amazon-aws-ec2-ami-module-parameter-resource-tags"></span><strong>tags</strong></p>
<a class="ansibleOptionLink" href="#parameter-tags" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-aliases">aliases: resource_tags</span></p>
@@ -597,7 +612,7 @@ see <a class="reference internal" href="#ansible-collections-amazon-aws-ec2-ami-
<p>If the <em>tags</em> parameter is not set then tags will not be modified.</p>
</div></td>
</tr>
-<tr class="row-even"><td><div class="ansible-option-cell">
+<tr class="row-odd"><td><div class="ansible-option-cell">
<div class="ansibleOptionAnchor" id="parameter-tpm_support"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-ec2-ami-module-parameter-tpm-support"><strong>tpm_support</strong></p>
<a class="ansibleOptionLink" href="#parameter-tpm_support" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
<p><em class="ansible-option-versionadded">added in amazon.aws 5.5.0</em></p>
@@ -609,7 +624,7 @@ see <a class="reference internal" href="#ansible-collections-amazon-aws-ec2-ami-
<p>See the AWS documentation for more detail <a class="reference external" href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitrotpm.html">https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitrotpm.html</a>.</p>
</div></td>
</tr>
-<tr class="row-odd"><td><div class="ansible-option-cell">
+<tr class="row-even"><td><div class="ansible-option-cell">
<div class="ansibleOptionAnchor" id="parameter-uefi_data"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-ec2-ami-module-parameter-uefi-data"><strong>uefi_data</strong></p>
<a class="ansibleOptionLink" href="#parameter-uefi_data" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
<p><em class="ansible-option-versionadded">added in amazon.aws 5.5.0</em></p>
@@ -618,7 +633,7 @@ see <a class="reference internal" href="#ansible-collections-amazon-aws-ec2-ami-
<p>See the AWS documentation for more detail <a class="reference external" href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/uefi-secure-boot.html">https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/uefi-secure-boot.html</a>.</p>
</div></td>
</tr>
-<tr class="row-even"><td><div class="ansible-option-cell">
+<tr class="row-odd"><td><div class="ansible-option-cell">
<div class="ansibleOptionAnchor" id="parameter-validate_certs"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-ec2-ami-module-parameter-validate-certs"><strong>validate_certs</strong></p>
<a class="ansibleOptionLink" href="#parameter-validate_certs" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">boolean</span></p>
</div></td>
@@ -631,7 +646,7 @@ see <a class="reference internal" href="#ansible-collections-amazon-aws-ec2-ami-
</ul>
</div></td>
</tr>
-<tr class="row-odd"><td><div class="ansible-option-cell">
+<tr class="row-even"><td><div class="ansible-option-cell">
<div class="ansibleOptionAnchor" id="parameter-virtualization_type"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-ec2-ami-module-parameter-virtualization-type"><strong>virtualization_type</strong></p>
<a class="ansibleOptionLink" href="#parameter-virtualization_type" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
</div></td>
@@ -639,7 +654,7 @@ see <a class="reference internal" href="#ansible-collections-amazon-aws-ec2-ami-
<p class="ansible-option-line"><strong class="ansible-option-default-bold">Default:</strong> <code class="ansible-option-default docutils literal notranslate"><span class="pre">"hvm"</span></code></p>
</div></td>
</tr>
-<tr class="row-even"><td><div class="ansible-option-cell">
+<tr class="row-odd"><td><div class="ansible-option-cell">
<div class="ansibleOptionAnchor" id="parameter-wait"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-ec2-ami-module-parameter-wait"><strong>wait</strong></p>
<a class="ansibleOptionLink" href="#parameter-wait" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">boolean</span></p>
</div></td>
@@ -651,7 +666,7 @@ see <a class="reference internal" href="#ansible-collections-amazon-aws-ec2-ami-
</ul>
</div></td>
</tr>
-<tr class="row-odd"><td><div class="ansible-option-cell">
+<tr class="row-even"><td><div class="ansible-option-cell">
<div class="ansibleOptionAnchor" id="parameter-wait_timeout"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-ec2-ami-module-parameter-wait-timeout"><strong>wait_timeout</strong></p>
<a class="ansibleOptionLink" href="#parameter-wait_timeout" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">integer</span></p>
</div></td>
diff --git a/home/runner/work/amazon.aws/amazon.aws/docsbuild/base/collections/amazon/aws/s3_object_info_module.html b/home/runner/work/amazon.aws/amazon.aws/docsbuild/head/collections/amazon/aws/s3_object_info_module.html
index 299d8da..a547c47 100644
--- a/home/runner/work/amazon.aws/amazon.aws/docsbuild/base/collections/amazon/aws/s3_object_info_module.html
+++ b/home/runner/work/amazon.aws/amazon.aws/docsbuild/head/collections/amazon/aws/s3_object_info_module.html
@@ -278,6 +278,22 @@ see <a class="reference internal" href="#ansible-collections-amazon-aws-s3-objec
</div></td>
</tr>
<tr class="row-even"><td><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="parameter-marker"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-s3-object-info-module-parameter-marker"><strong>marker</strong></p>
+<a class="ansibleOptionLink" href="#parameter-marker" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
+<p><em class="ansible-option-versionadded">added in amazon.aws 9.0.0</em></p>
+</div></td>
+<td><div class="ansible-option-cell"><p>Specifies the Object key to start with. Object keys are returned in alphabetical order, starting with key after the marker in order.</p>
+</div></td>
+</tr>
+<tr class="row-odd"><td><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="parameter-max_keys"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-s3-object-info-module-parameter-max-keys"><strong>max_keys</strong></p>
+<a class="ansibleOptionLink" href="#parameter-max_keys" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">integer</span></p>
+<p><em class="ansible-option-versionadded">added in amazon.aws 9.0.0</em></p>
+</div></td>
+<td><div class="ansible-option-cell"><p>Max number of results to return. Set this if you want to retrieve only partial results.</p>
+</div></td>
+</tr>
+<tr class="row-even"><td><div class="ansible-option-cell">
<div class="ansibleOptionAnchor" id="parameter-object_details"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-s3-object-info-module-parameter-object-details"><strong>object_details</strong></p>
<a class="ansibleOptionLink" href="#parameter-object_details" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">dictionary</span></p>
</div></td>
diff --git a/home/runner/work/amazon.aws/amazon.aws/docsbuild/base/collections/amazon/aws/s3_object_module.html b/home/runner/work/amazon.aws/amazon.aws/docsbuild/head/collections/amazon/aws/s3_object_module.html
index ea9b65c..c87efe8 100644
--- a/home/runner/work/amazon.aws/amazon.aws/docsbuild/base/collections/amazon/aws/s3_object_module.html
+++ b/home/runner/work/amazon.aws/amazon.aws/docsbuild/head/collections/amazon/aws/s3_object_module.html
@@ -435,16 +435,15 @@ see <a class="reference internal" href="#ansible-collections-amazon-aws-s3-objec
<a class="ansibleOptionLink" href="#parameter-marker" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
</div></td>
<td><div class="ansible-option-cell"><p>Specifies the key to start with when using list mode. Object keys are returned in alphabetical order, starting with key after the marker in order.</p>
-<p class="ansible-option-line"><strong class="ansible-option-default-bold">Default:</strong> <code class="ansible-option-default docutils literal notranslate"><span class="pre">""</span></code></p>
</div></td>
</tr>
<tr class="row-even"><td><div class="ansible-option-cell">
<div class="ansibleOptionAnchor" id="parameter-max_keys"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-s3-object-module-parameter-max-keys"><strong>max_keys</strong></p>
<a class="ansibleOptionLink" href="#parameter-max_keys" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">integer</span></p>
</div></td>
-<td><div class="ansible-option-cell"><p>Max number of results to return when <code class="ansible-option-value docutils literal notranslate"><a class="reference internal" href="#ansible-collections-amazon-aws-s3-object-module-parameter-mode"><span class="std std-ref"><span class="pre">mode=list</span></span></a></code>, set this if you want to retrieve fewer than the default 1000 keys.</p>
+<td><div class="ansible-option-cell"><p>Max number of results to return when <code class="ansible-option-value docutils literal notranslate"><a class="reference internal" href="#ansible-collections-amazon-aws-s3-object-module-parameter-mode"><span class="std std-ref"><span class="pre">mode=list</span></span></a></code></p>
+<p>When not set, <strong>all</strong> keys will be returned.</p>
<p>Ignored when <code class="ansible-option docutils literal notranslate"><strong><a class="reference internal" href="#ansible-collections-amazon-aws-s3-object-module-parameter-mode"><span class="std std-ref"><span class="pre">mode</span></span></a></strong></code> is not <code class="ansible-value docutils literal notranslate"><span class="pre">list</span></code>.</p>
-<p class="ansible-option-line"><strong class="ansible-option-default-bold">Default:</strong> <code class="ansible-option-default docutils literal notranslate"><span class="pre">1000</span></code></p>
</div></td>
</tr>
<tr class="row-odd"><td><div class="ansible-option-cell">
@@ -468,6 +467,7 @@ see <a class="reference internal" href="#ansible-collections-amazon-aws-s3-objec
<p><code class="ansible-value docutils literal notranslate"><span class="pre">delobj</span></code>: delete object</p>
<p><code class="ansible-value docutils literal notranslate"><span class="pre">copy</span></code>: copy object that is already stored in another bucket</p>
<p>Support for creating and deleting buckets was removed in release 6.0.0. To create and manage the bucket itself please use the <a class="reference internal" href="s3_bucket_module.html#ansible-collections-amazon-aws-s3-bucket-module"><span class="std std-ref">amazon.aws.s3_bucket</span></a> module.</p>
+<p>Support for <code class="ansible-value docutils literal notranslate"><span class="pre">list</span></code> has been deprecated and will be removed in a release after 2026-11-01. The <a class="reference internal" href="s3_object_info_module.html#ansible-collections-amazon-aws-s3-object-info-module"><span class="std std-ref">amazon.aws.s3_object_info</span></a> module should be used instead of <code class="ansible-value docutils literal notranslate"><span class="pre">list</span></code>.</p>
<p class="ansible-option-line"><strong class="ansible-option-choices">Choices:</strong></p>
<ul class="simple">
<li><p><code class="ansible-option-choices-entry docutils literal notranslate"><span class="pre">"get"</span></code></p></li>
|
SUMMARY
Add option to set the IMDS support for the AMI to
v2.0
in theec2_ami
module when creating or updating the AMI.The option value is a bool since the only valid attribute values are either
None
orv2.0
.The option defaults to
false
to keep backwards compatibility.Update the
ec2_ami_info
module to return theimdsv2_enabled
attribute.ISSUE TYPE
COMPONENT NAME
ec2_ami
ec2_ami_info
ADDITIONAL INFORMATION
N/A it's a new feature