-
Notifications
You must be signed in to change notification settings - Fork 2
CloudFormation Deployment
loki-bedlam edited this page Mar 20, 2026
·
1 revision
Deploy Loki using a standard AWS CloudFormation template.
- Download
template.yaml - Open the CloudFormation Console
- Upload the template
- Fill in parameters (defaults work for most setups)
- Acknowledge IAM capabilities and create the stack
- Wait for
CREATE_COMPLETE(~8–10 minutes)
aws cloudformation create-stack \
--stack-name my-openclaw \
--template-body file://template.yaml \
--parameters \
ParameterKey=EnvironmentName,ParameterValue=my-openclaw \
ParameterKey=InstanceType,ParameterValue=t4g.xlarge \
ParameterKey=ModelMode,ParameterValue=bedrock \
--capabilities CAPABILITY_NAMED_IAM \
--region us-east-1This template is designed to work with CloudFormation StackSets for deploying across AWS Organization accounts:
aws cloudformation create-stack-set \
--stack-set-name openclaw-instances \
--template-body file://template.yaml \
--parameters \
ParameterKey=EnvironmentName,ParameterValue=openclaw \
ParameterKey=ModelMode,ParameterValue=bedrock \
--capabilities CAPABILITY_NAMED_IAM \
--permission-model SERVICE_MANAGED \
--auto-deployment Enabled=true,RetainStacksOnAccountRemoval=false
aws cloudformation create-stack-instances \
--stack-set-name openclaw-instances \
--deployment-targets OrganizationalUnitIds=ou-xxxx-xxxxxxxx \
--regions us-east-1| Output | Description |
|---|---|
InstanceId |
EC2 instance ID |
PublicIp |
Public IP address |
SSMConnect |
Ready-to-use SSM connect command |
RoleArn |
IAM role ARN |
VpcId |
VPC ID |
- Stack creation takes ~8–10 minutes (EC2 bootstrap installs Node.js, Loki, and configures the gateway)
- The
CreationPolicywithResourceSignalensures the stack only completes when the instance is fully bootstrapped - Requires
CAPABILITY_NAMED_IAMdue to named IAM roles and users