PHPackages                             tourze/aws-lightsail-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. tourze/aws-lightsail-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

tourze/aws-lightsail-bundle
===========================

AWS Lightsail integration bundle for Symfony

0.0.2(11mo ago)01MITPHPPHP ^8.1CI failing

Since May 4Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/tourze/aws-lightsail-bundle)[ Packagist](https://packagist.org/packages/tourze/aws-lightsail-bundle)[ RSS](/packages/tourze-aws-lightsail-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (23)Versions (3)Used By (0)

AWS Lightsail Bundle
====================

[](#aws-lightsail-bundle)

[English](README.md) | [中文](README.zh-CN.md)

[![PHP Version Require](https://camo.githubusercontent.com/00adc4510ea1f09904108523575b15c69760b3aa2931a690085c28e17a680414/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f746f75727a652f6177732d6c696768747361696c2d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/aws-lightsail-bundle)[![Latest Version](https://camo.githubusercontent.com/eb645b2c4969e9f1311f50e9d7f4e5f51d38ca5fbb137aa182b9941b10219ff8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f75727a652f6177732d6c696768747361696c2d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/aws-lightsail-bundle)[![License](https://camo.githubusercontent.com/d0d7f4973c2dc0f9f4b2a514ff2d28b14df23c11875da581748507a973dfb9fd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f746f75727a652f6177732d6c696768747361696c2d62756e646c652e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Downloads](https://camo.githubusercontent.com/94d86aa3317609586c00b1ad34860baf367b06811f3a78cfcd42f7e4648737e1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746f75727a652f6177732d6c696768747361696c2d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/aws-lightsail-bundle)[![Tests](https://camo.githubusercontent.com/6e829cb1391abb3bb72495dd554666f35eb474ab6520656940fa099c0633d39a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f74657374732d3331342532307061737365642d627269676874677265656e3f7374796c653d666c61742d737175617265)](#)[![Code Coverage](https://camo.githubusercontent.com/50a4fbc8e51d67d8814fd8ab90d2cbd132da38b8d00c18c96634f969c20867a8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f7665726167652d3130302532352d627269676874677265656e3f7374796c653d666c61742d737175617265)](#)

A comprehensive Symfony bundle for AWS Lightsail integration, providing an intuitive interface for managing Lightsail resources with EasyAdmin support.

Table of Contents
-----------------

[](#table-of-contents)

- [Features](#features)
- [Requirements](#requirements)
- [Installation](#installation)
- [Quick Start](#quick-start)
- [Configuration](#configuration)
- [Supported Resources](#supported-resources)
    - [Console Commands](#console-commands)
    - [Access Admin Interface](#access-admin-interface)
    - [API Documentation](#api-documentation)
- [Advanced Configuration](#advanced-configuration)
- [Troubleshooting](#troubleshooting)
- [Security](#security)
- [Contributing](#contributing)
- [License](#license)

Features
--------

[](#features)

- **Complete AWS Lightsail Resource Management** - Manage all Lightsail resources from a single interface
- **EasyAdmin Integration** - Beautiful admin interface with minimal configuration
- **Multi-Credential Support** - Manage multiple AWS accounts from one application
- **Automatic Resource Synchronization** - Keep local database in sync with AWS
- **Console Commands** - Powerful CLI tools for automation and scripting
- **Comprehensive API** - Programmatic access to all Lightsail features
- **Secure Credential Management** - Encrypted storage of AWS credentials

Requirements
------------

[](#requirements)

- PHP 8.1 or higher
- Symfony 7.3 or higher
- Doctrine ORM 3.0 or higher
- AWS SDK for PHP 3.349.3
- EasyAdmin Bundle 4.0 or higher

Installation
------------

[](#installation)

```
composer require tourze/aws-lightsail-bundle
```

### Step 1: Register the Bundle

[](#step-1-register-the-bundle)

```
// config/bundles.php
return [
    // ...
    AwsLightsailBundle\AwsLightsailBundle::class => ['all' => true],
];
```

### Configuration

[](#configuration)

#### Step 2: Configure Environment Variables

[](#step-2-configure-environment-variables)

Add the following to your `.env` or `.env.local` file:

```
AWS_ACCESS_KEY_ID=your-aws-access-key-id
AWS_SECRET_ACCESS_KEY=your-aws-secret-access-key
AWS_REGION=your-default-region # e.g., us-east-1
```

#### Create Database Tables

[](#create-database-tables)

Run the database migration to create required tables:

```
php bin/console doctrine:schema:update --force
```

Or use migrations:

```
php bin/console doctrine:migrations:diff
php bin/console doctrine:migrations:migrate
```

Quick Start
-----------

[](#quick-start)

### Access Admin Interface

[](#access-admin-interface)

After installation, access the admin interface at:

```
https://your-domain/admin/aws-lightsail

```

### Add AWS Credentials

[](#add-aws-credentials)

The first step is to add AWS credentials in the admin interface to manage Lightsail resources.

### Example: Managing Instances

[](#example-managing-instances)

```
