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:
parent
c22fb8bcdc
commit
fca4fdf2ef
1
bun.lock
1
bun.lock
@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
|
"configVersion": 0,
|
||||||
"workspaces": {
|
"workspaces": {
|
||||||
"": {
|
"": {
|
||||||
"name": "registry",
|
"name": "registry",
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -8,10 +8,10 @@ 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)"
|
||||||
|
|
||||||
# If a specific version was requested, check if it matches
|
# If a specific version was requested, check if it matches
|
||||||
if [ -n "$VERSION" ] && [ "$INSTALLED_VERSION" != "$VERSION" ]; then
|
if [ -n "$VERSION" ] && [ "$INSTALLED_VERSION" != "$VERSION" ]; then
|
||||||
echo "⚠️ Installed version ($INSTALLED_VERSION) does not match requested version ($VERSION)"
|
echo "⚠️ Installed version ($INSTALLED_VERSION) does not match requested version ($VERSION)"
|
||||||
@ -67,10 +67,10 @@ fi
|
|||||||
# Verify signature if requested
|
# Verify signature if requested
|
||||||
if [ "$VERIFY_SIGNATURE" = "true" ]; then
|
if [ "$VERIFY_SIGNATURE" = "true" ]; then
|
||||||
echo "🔐 Verifying GPG signature..."
|
echo "🔐 Verifying GPG signature..."
|
||||||
|
|
||||||
# Download signature file
|
# Download signature file
|
||||||
curl -fsSL "$DOWNLOAD_URL.sig" -o "awscliv2.zip.sig"
|
curl -fsSL "$DOWNLOAD_URL.sig" -o "awscliv2.zip.sig"
|
||||||
|
|
||||||
# Download and import AWS CLI public key
|
# Download and import AWS CLI public key
|
||||||
cat > awscli-public-key.asc << 'EOF'
|
cat > awscli-public-key.asc << 'EOF'
|
||||||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||||
@ -127,10 +127,10 @@ qJZLqJZJqJZLqJZJqJZLqJZJqA==
|
|||||||
=qvqC
|
=qvqC
|
||||||
-----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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user