How to Build
AssemblyLift applications are built using the cast command:
1
$ asml cast
Copied!
This command will compile each function in each service using the language's build tool, and then compile the resulting WASM to backend-native binary.
In addition, asml will invoke Terraform & generate an infrastructure plan for your project. All build artifacts are serialized to the net directory.

Configuring Remote State

AssemblyLift allows you to configure the S3/DynamoDB remote state store in the AssemblyLift manifest.
assemblylift.toml
1
[project]
2
name = "my-project"
3
4
# The terraform table is optional
5
# By default Terraform will write state to a local file
6
[terraform]
7
state_bucket_name = "bucket"
8
lock_table_name = "table"
Copied!
This configuration requires that the bucket & table resources referenced by state_bucket_name and lock_table_name already exist and are correctly configured.

Using an AWS Credentials Profile

If you are deploying to multiple AWS accounts, the asml CLI will respect the setting of the AWS_PROFILE environment variable. For example:
1
$ export AWS_PROFILE=my-profile-name
2
$ asml cast
3
$ asml bind
Copied!
Last modified 2mo ago