Skip to content

Commit fca4fdf

Browse files
committed
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
1 parent c22fb8b commit fca4fdf

File tree

3 files changed

+19
-18
lines changed

3 files changed

+19
-18
lines changed

bun.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"lockfileVersion": 1,
3+
"configVersion": 0,
34
"workspaces": {
45
"": {
56
"name": "registry",

registry/ausbru87/modules/aws-cli/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -123,18 +123,18 @@ For more information, see the [AWS CLI Configuration Guide](https://docs.aws.ama
123123

124124
## Variables
125125

126-
| Name | Description | Default | Required |
127-
| ------------------- | -------------------------------------------------------------------------------------------- | -------------- | -------- |
128-
| `agent_id` | The ID of a Coder agent | - | Yes |
129-
| `aws_cli_version` | The version of AWS CLI to install (leave empty for latest) | `""` | No |
130-
| `install_directory` | The directory to install AWS CLI to | `/usr/local` | No |
131-
| `architecture` | The architecture to install AWS CLI for (`x86_64` or `aarch64`, empty for auto-detection) | `""` | No |
132-
| `verify_signature` | Whether to verify the GPG signature of the downloaded installer | `false` | No |
126+
| Name | Description | Default | Required |
127+
| ------------------- | ----------------------------------------------------------------------------------------- | ------------ | -------- |
128+
| `agent_id` | The ID of a Coder agent | - | Yes |
129+
| `aws_cli_version` | The version of AWS CLI to install (leave empty for latest) | `""` | No |
130+
| `install_directory` | The directory to install AWS CLI to | `/usr/local` | No |
131+
| `architecture` | The architecture to install AWS CLI for (`x86_64` or `aarch64`, empty for auto-detection) | `""` | No |
132+
| `verify_signature` | Whether to verify the GPG signature of the downloaded installer | `false` | No |
133133

134134
## Outputs
135135

136-
| Name | Description |
137-
| ----------------- | ------------------------------------------------------------------------------------ |
136+
| Name | Description |
137+
| ----------------- | ----------------------------------------------------------------------------------- |
138138
| `aws_cli_version` | The version of AWS CLI that was installed (or 'latest' if no version was specified) |
139139

140140
## Requirements

registry/ausbru87/modules/aws-cli/run.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ ARCHITECTURE="${ARCHITECTURE}"
88
VERIFY_SIGNATURE="${VERIFY_SIGNATURE}"
99

1010
# Check if AWS CLI is already installed
11-
if command -v aws >/dev/null 2>&1; then
11+
if command -v aws > /dev/null 2>&1; then
1212
INSTALLED_VERSION=$(aws --version 2>&1 | awk '{print $1}' | cut -d'/' -f2)
1313
echo "ℹ️ AWS CLI is already installed (version $INSTALLED_VERSION)"
14-
14+
1515
# If a specific version was requested, check if it matches
1616
if [ -n "$VERSION" ] && [ "$INSTALLED_VERSION" != "$VERSION" ]; then
1717
echo "⚠️ Installed version ($INSTALLED_VERSION) does not match requested version ($VERSION)"
@@ -67,10 +67,10 @@ fi
6767
# Verify signature if requested
6868
if [ "$VERIFY_SIGNATURE" = "true" ]; then
6969
echo "🔐 Verifying GPG signature..."
70-
70+
7171
# Download signature file
7272
curl -fsSL "$DOWNLOAD_URL.sig" -o "awscliv2.zip.sig"
73-
73+
7474
# Download and import AWS CLI public key
7575
cat > awscli-public-key.asc << 'EOF'
7676
-----BEGIN PGP PUBLIC KEY BLOCK-----
@@ -127,10 +127,10 @@ qJZLqJZJqJZLqJZJqJZLqJZJqA==
127127
=qvqC
128128
-----END PGP PUBLIC KEY BLOCK-----
129129
EOF
130-
131-
gpg --import awscli-public-key.asc 2>/dev/null || true
132-
133-
if gpg --verify awscliv2.zip.sig awscliv2.zip 2>/dev/null; then
130+
131+
gpg --import awscli-public-key.asc 2> /dev/null || true
132+
133+
if gpg --verify awscliv2.zip.sig awscliv2.zip 2> /dev/null; then
134134
echo "✅ Signature verification successful"
135135
else
136136
echo "⚠️ Signature verification failed, but continuing installation..."
@@ -152,7 +152,7 @@ else
152152
fi
153153

154154
# Verify installation
155-
if command -v aws >/dev/null 2>&1; then
155+
if command -v aws > /dev/null 2>&1; then
156156
INSTALLED_VERSION=$(aws --version 2>&1 | awk '{print $1}' | cut -d'/' -f2)
157157
echo "✅ AWS CLI successfully installed (version $INSTALLED_VERSION)"
158158
aws --version

0 commit comments

Comments
 (0)