tag:github.com,2008:https://github.com/gruntwork-io/bash-commons/releasesRelease notes from bash-commons2024-07-29T16:42:05Ztag:github.com,2008:Repository/128768909/v0.2.42024-07-29T16:43:55Zv0.2.4<h2>Modules affected</h2>
<ul>
<li><code>bash-commons</code></li>
</ul>
<h2>Description</h2>
<ul>
<li>Add centos stream to OS check function</li>
</ul>arscitag:github.com,2008:Repository/128768909/v0.2.32024-07-23T22:40:56Zv0.2.3<h2>Modules affected</h2>
<ul>
<li><code>bash-commons</code></li>
</ul>
<h2>Description</h2>
<ul>
<li>Remove EOL Ubuntu 16.04 and 18.04 tests</li>
<li>Add tests for Ubuntu 22.04</li>
</ul>gcagle3tag:github.com,2008:Repository/128768909/v0.2.22024-06-28T22:26:21Zv0.2.2<h2>Modules affected</h2>
<ul>
<li><code>bash-commons</code></li>
</ul>
<h2>Description</h2>
<ul>
<li>Default to IMDSv2 if no override set
<ul>
<li>The calling script can override this by setting either of the two variables:
<ul>
<li>GRUNTWORK_BASH_COMMONS_IMDS_VERSION</li>
<li>default_instance_metadata_version</li>
</ul>
</li>
</ul>
</li>
<li>Improved metadata availability detection</li>
</ul>gcagle3tag:github.com,2008:Repository/128768909/v0.2.12024-06-27T19:21:42Zv0.2.1<h2>Modules affected</h2>
<ul>
<li><code>bash-commons</code></li>
</ul>
<h2>Description</h2>
<ul>
<li>Fixed unbound variable bug in <code>modules/bash-commons/src/aws.sh</code></li>
</ul>gcagle3tag:github.com,2008:Repository/128768909/v0.2.02024-06-27T19:20:50Zv0.2.0<h2>Modules affected</h2>
<ul>
<li><code>bash-commons</code></li>
</ul>
<h2>Description</h2>
<p>Update to use IMDSv2 by default (still supports manually setting v1 if needed)</p>
<h2>IMPORTANT</h2>
<p>There is a bug <code>modules/bash-commons/src/aws.sh</code> that will result in an unbound variable error if GRUNTWORK_BASH_COMMONS_IMDS_VERSION is undefined. This is fixed in v0.2.1.</p>gcagle3tag:github.com,2008:Repository/128768909/v0.1.92021-10-22T13:43:06Zv0.1.9<h2>Modules affected</h2>
<ul>
<li><code>log.sh</code></li>
</ul>
<h2>Description</h2>
<p>Added convenience function for echo-ing to <code>stderr</code>.</p>yorinasub17tag:github.com,2008:Repository/128768909/v0.1.82021-10-08T20:32:45Zv0.1.8<h2>Modules affected</h2>
<ul>
<li><code>aws.sh</code></li>
</ul>
<h2>Description</h2>
<p>Introduce support for AWS Instance Metadata Service (IMDS) Version 2. These changes are fully backward compatible, and <code>bash-commons</code> continues to default to Version 1 of the Instance Metadata Service.</p>
<p>You can override the version of IMDS that bash-commons contacts by setting the following environment variable:</p>
<p><code>GRUNTWORK_BASH_COMMONS_IMDS_VERSION="2"</code></p>
<p><code>bash-commons</code> will continue to default to IMDSv1 until we have migrated all our dependent modules to use version 2. Once this migration is complete, we will issue another release that updates bash-commons to use IMDSv2 by default.</p>
<p>For more information on the differences between Instance Metadata Service Versions 1 and 2 see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-service.html" rel="nofollow">here</a>.</p>zackprosertag:github.com,2008:Repository/128768909/v0.1.72021-06-11T17:44:08Zv0.1.7<h3>Modules affected</h3>
<ul>
<li><code>assert.sh</code></li>
<li><code>string.sh</code></li>
</ul>
<h3>Description</h3>
<ul>
<li>Introduce <code>assert_user_has_sudo_perms</code> which checks if user has permissions to run <code>sudo</code>.</li>
<li>Introduce <code>string_substr</code> which can extract a substring by index.</li>
</ul>
<h3>Related links</h3>
<ul>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="918993311" data-permission-text="Title is private" data-url="https://github.com/gruntwork-io/bash-commons/issues/37" data-hovercard-type="pull_request" data-hovercard-url="/gruntwork-io/bash-commons/pull/37/hovercard" href="https://github.com/gruntwork-io/bash-commons/pull/37">#37</a></li>
</ul>yorinasub17tag:github.com,2008:Repository/128768909/v0.1.62021-06-11T13:36:54Zv0.1.6<h3>Modules affected</h3>
<ul>
<li><code>os.sh</code></li>
</ul>
<h3>Description</h3>
<ul>
<li>Fix bug introduced with using <code>sudo</code> for the <code>os_create_user</code> and <code>os_change_dir_owner</code> functions.</li>
</ul>
<h3>Related links</h3>
<ul>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="917913372" data-permission-text="Title is private" data-url="https://github.com/gruntwork-io/bash-commons/issues/36" data-hovercard-type="pull_request" data-hovercard-url="/gruntwork-io/bash-commons/pull/36/hovercard" href="https://github.com/gruntwork-io/bash-commons/pull/36">#36</a></li>
</ul>yorinasub17tag:github.com,2008:Repository/128768909/v0.1.52021-06-10T16:35:56Zv0.1.5<h3>Modules affected</h3>
<ul>
<li><code>os.sh</code></li>
</ul>
<h3>Description</h3>
<ul>
<li><code>os_create_user</code> and <code>os_change_dir_owner</code> now have the ability to run respective commands using <code>sudo</code>.</li>
</ul>
<h3>Related links</h3>
<ul>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="917526425" data-permission-text="Title is private" data-url="https://github.com/gruntwork-io/bash-commons/issues/35" data-hovercard-type="pull_request" data-hovercard-url="/gruntwork-io/bash-commons/pull/35/hovercard" href="https://github.com/gruntwork-io/bash-commons/pull/35">#35</a></li>
</ul>yorinasub17