Direct Deployment Using AWS CLI
The Lightbits SDS CF stack can also be deployed using AWS CLI. You will need to at least fill out the mandatory fields as described in the CF Parameters section of this guide. The remaining parameters can be left as the defaults.
$ aws cloudformation create-stack --stack-name <YOUR_STACK_NAME> --template-url <PROVIDED_STACK_TEMPLATE_URL>
--capabilities CAPABILITY_IAM CAPABILITY_NAMED_IAM --region <REGION_WHERE_STACK_DEPLOYED>
--parameters ParameterKey=S3ConfBucketName,ParameterValue=<CONFIG_BUCKET>
ParameterKey=AvailabilityZone,ParameterValue=<AZ> ParameterKey=ConnectivityCIDR,ParameterValue=<CIDR>
ParameterKey=KeyPairName,ParameterValue=<SSH_KEY>
If the stack deployment initiation was successful, the response you should get back is the stack ID/ARN.
The following is an example of a deployment using AWS CLI, with provided parameters for the following:
- Instance Type = i3en.6xlarge
- Instance Count = 5
The exact parameters provided to the CF create-stack aws command need to be adjusted per the actual stack and configuration. This is meant to illustrate command usage.
Request
$ aws cloudformation create-stack --stack-name my-lightos-test-via-cli --template-url https://lightbits-docs.s3.amazonaws.com/latest/cf-lb-root-marketplace.yml --capabilities CAPABILITY_IAM CAPABILITY_NAMED_IAM --region us-east-1
--parameters ParameterKey=S3ConfBucketName,ParameterValue=lightos-config-test
ParameterKey=AvailabilityZone,ParameterValue=us-east-1a ParameterKey=ConnectivityCIDR,ParameterValue=0.0.0.0/0 ParameterKey=KeyPairName,ParameterValue=lightbits-storage-03
Response
{
"StackId": "arn:aws:cloudformation:us-east-1:958583605623:stack/my-deployment-test-via-cli/46af6a20-52b6-11ed-aa02-0a59866511b9"
}
Was this page helpful?