AWS Setup
Configure your local AWS environment for @interlace plugin development and testing.
Prerequisites
- AWS CLI installed (
aws --version) - An AWS account with IAM permissions
Create an IAM User
Create a dedicated user for Serverless plugin development:
aws iam create-user --user-name interlace-cli
aws iam attach-user-policy \
--user-name interlace-cli \
--policy-arn arn:aws:iam::aws:policy/AdministratorAccess
aws iam tag-user \
--user-name interlace-cli \
--tags Key=project,Value=interlace Key=environment,Value=developmentConfigure AWS Profile
aws configure --profile interlace
# AWS Access Key ID: <your-key>
# AWS Secret Access Key: <your-secret>
# Default region name: us-east-1
# Default output format: jsonDisable the pager (prevents interactive vim/less sessions):
aws configure set cli_pager "" --profile interlaceVerify
aws sts get-caller-identity --profile interlaceEnvironment Variables
Copy the example env file for your project:
cp .env.example .envAWS_PROFILE=interlace
AWS_REGION=us-east-1Deploy
sls deploy --aws-profile interlace