@orcdkestrator/orcdk-plugin-awslocal
v1.0.0
Published
AWS CLI interception plugin for LocalStack integration with Orcdkestrator
Downloads
6
Maintainers
Readme
Orcdkestrator Plugin: AWS Local
Automatically intercepts AWS CLI commands and redirects them to LocalStack when running in local development mode. This plugin enables seamless local development by ensuring all AWS commands target your LocalStack instance instead of real AWS services.
Installation
npm install @orcdkestrator/orcdk-plugin-awslocal --save-devConfiguration
Add to your orcdk.config.json:
{
"plugins": [
{
"name": "awslocal",
"enabled": true
}
]
}Usage
Once configured, the plugin automatically activates when:
- Your environment is set to local mode (
isLocal: true) - The
awslocalCLI is installed on your system
When active, all AWS CLI commands executed during CDK deployment will be redirected to LocalStack.
API Reference
See API Documentation for detailed information.
Configuration Options
| Option | Type | Default | Description | |--------|------|---------|-------------| | enabled | boolean | true | Enable/disable the plugin |
Prerequisites
This plugin requires awslocal CLI to be installed:
pip install awscli-localHow It Works
The plugin intercepts AWS CLI command executions and replaces them with awslocal equivalents when running in local mode. This ensures that:
- S3 operations target LocalStack's S3 service
- CloudFormation commands work with LocalStack
- All other AWS service calls are properly redirected
Examples
See the examples directory for complete examples.
Development
# Clone the repository
git clone https://github.com/orcdkestrator/orcdk-plugin-awslocal.git
# Install dependencies
npm install
# Run tests
npm test
# Build
npm run buildContributing
See CONTRIBUTING.md for contribution guidelines.
License
MIT - see LICENSE for details. <!-- CI test --> // Build triggered after core package publish
