-
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
support ec2 metadata uri options #2364
base: main
Are you sure you want to change the base?
support ec2 metadata uri options #2364
Conversation
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_metadata_facts_module.html b/home/runner/work/amazon.aws/amazon.aws/docsbuild/head/collections/amazon/aws/ec2_metadata_facts_module.html
index 3060828..1739eda 100644
--- a/home/runner/work/amazon.aws/amazon.aws/docsbuild/base/collections/amazon/aws/ec2_metadata_facts_module.html
+++ b/home/runner/work/amazon.aws/amazon.aws/docsbuild/head/collections/amazon/aws/ec2_metadata_facts_module.html
@@ -174,6 +174,60 @@ To check whether it is installed, run <code class="code docutils literal notrans
</thead>
<tbody>
<tr class="row-even"><td><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="parameter-ec2_dynamicdata_uri"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-ec2-metadata-facts-module-parameter-ec2-dynamicdata-uri"><strong>ec2_dynamicdata_uri</strong></p>
+<a class="ansibleOptionLink" href="#parameter-ec2_dynamicdata_uri" 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 8.3.0</em></p>
+</div></td>
+<td><div class="ansible-option-cell"><p>This option is for testing purpuse.</p>
+<p>If not specified, <code class="ansible-value docutils literal notranslate"><span class="pre">http://169.254.169.254/latest/dynamic/</span></code> is used.</p>
+</div></td>
+</tr>
+<tr class="row-odd"><td><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="parameter-ec2_metadata_instance_tags_uri"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-ec2-metadata-facts-module-parameter-ec2-metadata-instance-tags-uri"><strong>ec2_metadata_instance_tags_uri</strong></p>
+<a class="ansibleOptionLink" href="#parameter-ec2_metadata_instance_tags_uri" 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 8.3.0</em></p>
+</div></td>
+<td><div class="ansible-option-cell"><p>This option is for testing purpuse.</p>
+<p>If not specified, <code class="ansible-value docutils literal notranslate"><span class="pre">http://169.254.169.254/latest/meta-data/tags/instance</span></code> is used.</p>
+</div></td>
+</tr>
+<tr class="row-even"><td><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="parameter-ec2_metadata_token_uri"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-ec2-metadata-facts-module-parameter-ec2-metadata-token-uri"><strong>ec2_metadata_token_uri</strong></p>
+<a class="ansibleOptionLink" href="#parameter-ec2_metadata_token_uri" 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 8.3.0</em></p>
+</div></td>
+<td><div class="ansible-option-cell"><p>This option is for testing purpuse.</p>
+<p>If not specified, <code class="ansible-value docutils literal notranslate"><span class="pre">http://169.254.169.254/latest/api/token</span></code> is used.</p>
+</div></td>
+</tr>
+<tr class="row-odd"><td><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="parameter-ec2_metadata_uri"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-ec2-metadata-facts-module-parameter-ec2-metadata-uri"><strong>ec2_metadata_uri</strong></p>
+<a class="ansibleOptionLink" href="#parameter-ec2_metadata_uri" 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 8.3.0</em></p>
+</div></td>
+<td><div class="ansible-option-cell"><p>This option is for testing purpuse.</p>
+<p>If not specified, <code class="ansible-value docutils literal notranslate"><span class="pre">http://169.254.169.254/latest/meta-data/</span></code> is used.</p>
+</div></td>
+</tr>
+<tr class="row-even"><td><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="parameter-ec2_sshdata_uri"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-ec2-metadata-facts-module-parameter-ec2-sshdata-uri"><strong>ec2_sshdata_uri</strong></p>
+<a class="ansibleOptionLink" href="#parameter-ec2_sshdata_uri" 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 8.3.0</em></p>
+</div></td>
+<td><div class="ansible-option-cell"><p>This option is for testing purpuse.</p>
+<p>If not specified, <code class="ansible-value docutils literal notranslate"><span class="pre">http://169.254.169.254/latest/meta-data/public-keys/0/openssh-key</span></code> is used.</p>
+</div></td>
+</tr>
+<tr class="row-odd"><td><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="parameter-ec2_userdata_uri"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-ec2-metadata-facts-module-parameter-ec2-userdata-uri"><strong>ec2_userdata_uri</strong></p>
+<a class="ansibleOptionLink" href="#parameter-ec2_userdata_uri" 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 8.3.0</em></p>
+</div></td>
+<td><div class="ansible-option-cell"><p>This option is for testing purpuse.</p>
+<p>If not specified, <code class="ansible-value docutils literal notranslate"><span class="pre">http://169.254.169.254/latest/user-data/</span></code> is used.</p>
+</div></td>
+</tr>
+<tr class="row-even"><td><div class="ansible-option-cell">
<div class="ansibleOptionAnchor" id="parameter-metadata_token_ttl_seconds"></div><p class="ansible-option-title" id="ansible-collections-amazon-aws-ec2-metadata-facts-module-parameter-metadata-token-ttl-seconds"><strong>metadata_token_ttl_seconds</strong></p>
<a class="ansibleOptionLink" href="#parameter-metadata_token_ttl_seconds" 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 8.2.0</em></p>
|
e39ae42
to
a56bcfe
Compare
Build failed. ✔️ ansible-galaxy-importer SUCCESS in 4m 27s |
I couldn't find the cause of the failure from the console log. |
recheck |
Build failed. ✔️ ansible-galaxy-importer SUCCESS in 5m 10s |
I found some |
Build failed. ✔️ ansible-galaxy-importer SUCCESS in 5m 10s |
Build failed. ✔️ ansible-galaxy-importer SUCCESS in 4m 45s |
6217c64
to
5486533
Compare
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 5m 11s |
SUMMARY
This PR provide the feature to customize the URIs related to IMDS.
The feature helps user who want to develop and test playbooks on local or outside of AWS, but will deploy on AWS.
We can mock IMDS easily by this PR.
The way to customize URIs of IMDS seems to have interfaces on the class level, but not expose on ansible module level.
In this PR, I just create the way to customize options without any refactoring.
ISSUE TYPE
COMPONENT NAME
ec2_metadata_facts
ADDITIONAL INFORMATION