Fix formatting issues in AWS CLI module

- Format README.md tables with proper column alignment
- Add spaces around redirect operators in run.sh
- Remove trailing whitespace
- Update bun.lock with installed dependencies
This commit is contained in:
Austen Bruhn 2025-11-15 16:57:30 -07:00
parent c22fb8bcdc
commit fca4fdf2ef
3 changed files with 19 additions and 18 deletions

View File

@ -1,5 +1,6 @@
{ {
"lockfileVersion": 1, "lockfileVersion": 1,
"configVersion": 0,
"workspaces": { "workspaces": {
"": { "": {
"name": "registry", "name": "registry",

View File

@ -123,18 +123,18 @@ For more information, see the [AWS CLI Configuration Guide](https://docs.aws.ama
## Variables ## Variables
| Name | Description | Default | Required | | Name | Description | Default | Required |
| ------------------- | -------------------------------------------------------------------------------------------- | -------------- | -------- | | ------------------- | ----------------------------------------------------------------------------------------- | ------------ | -------- |
| `agent_id` | The ID of a Coder agent | - | Yes | | `agent_id` | The ID of a Coder agent | - | Yes |
| `aws_cli_version` | The version of AWS CLI to install (leave empty for latest) | `""` | No | | `aws_cli_version` | The version of AWS CLI to install (leave empty for latest) | `""` | No |
| `install_directory` | The directory to install AWS CLI to | `/usr/local` | No | | `install_directory` | The directory to install AWS CLI to | `/usr/local` | No |
| `architecture` | The architecture to install AWS CLI for (`x86_64` or `aarch64`, empty for auto-detection) | `""` | No | | `architecture` | The architecture to install AWS CLI for (`x86_64` or `aarch64`, empty for auto-detection) | `""` | No |
| `verify_signature` | Whether to verify the GPG signature of the downloaded installer | `false` | No | | `verify_signature` | Whether to verify the GPG signature of the downloaded installer | `false` | No |
## Outputs ## Outputs
| Name | Description | | Name | Description |
| ----------------- | ------------------------------------------------------------------------------------ | | ----------------- | ----------------------------------------------------------------------------------- |
| `aws_cli_version` | The version of AWS CLI that was installed (or 'latest' if no version was specified) | | `aws_cli_version` | The version of AWS CLI that was installed (or 'latest' if no version was specified) |
## Requirements ## Requirements

View File

@ -8,7 +8,7 @@ ARCHITECTURE="${ARCHITECTURE}"
VERIFY_SIGNATURE="${VERIFY_SIGNATURE}" VERIFY_SIGNATURE="${VERIFY_SIGNATURE}"
# Check if AWS CLI is already installed # Check if AWS CLI is already installed
if command -v aws >/dev/null 2>&1; then if command -v aws > /dev/null 2>&1; then
INSTALLED_VERSION=$(aws --version 2>&1 | awk '{print $1}' | cut -d'/' -f2) INSTALLED_VERSION=$(aws --version 2>&1 | awk '{print $1}' | cut -d'/' -f2)
echo " AWS CLI is already installed (version $INSTALLED_VERSION)" echo " AWS CLI is already installed (version $INSTALLED_VERSION)"
@ -128,9 +128,9 @@ qJZLqJZJqJZLqJZJqJZLqJZJqA==
-----END PGP PUBLIC KEY BLOCK----- -----END PGP PUBLIC KEY BLOCK-----
EOF EOF
gpg --import awscli-public-key.asc 2>/dev/null || true gpg --import awscli-public-key.asc 2> /dev/null || true
if gpg --verify awscliv2.zip.sig awscliv2.zip 2>/dev/null; then if gpg --verify awscliv2.zip.sig awscliv2.zip 2> /dev/null; then
echo "✅ Signature verification successful" echo "✅ Signature verification successful"
else else
echo "⚠️ Signature verification failed, but continuing installation..." echo "⚠️ Signature verification failed, but continuing installation..."
@ -152,7 +152,7 @@ else
fi fi
# Verify installation # Verify installation
if command -v aws >/dev/null 2>&1; then if command -v aws > /dev/null 2>&1; then
INSTALLED_VERSION=$(aws --version 2>&1 | awk '{print $1}' | cut -d'/' -f2) INSTALLED_VERSION=$(aws --version 2>&1 | awk '{print $1}' | cut -d'/' -f2)
echo "✅ AWS CLI successfully installed (version $INSTALLED_VERSION)" echo "✅ AWS CLI successfully installed (version $INSTALLED_VERSION)"
aws --version aws --version