Attini quick start

Before you start you need to have a Sandbox AWS Account and the AWS CLI (with configured Administrators credentials).

You can verify that you are ready to start by running the command: aws sts get-caller-identity

The Attini CLI is available for MacOs and Linux.


This guide will do an isolated installation of the Attini CLI (it will only work in your current shell) and the Attini Framework will get configuration appropriate for a Sandbox environment. To do a proper installation, please see installing the Attini CLI and Install Attini Framework.

Installing the Attini CLI and on-board the Attini Framework

  1. Creating a working directory:

mkdir -p attini-quick-start
cd attini-quick-start
  1. Quick installation of the Attini CLI:

If you already have the Attini CLI installed, you can skip this step.

echo "Installing Attini CLI"
curl -L#o ./attini "$(uname -m)/$(uname -s)/latest"; chmod +x ./attini

echo "Adding your current directory to the system path"
export PATH="$(pwd):$PATH"

echo "Setting up attini auto-complete"
source <(attini generate-completion)

attini --version
  1. Onboard Attini Framework (ca 3-4 min):

attini setup --accept-license-agreement --create-deployment-plan-default-role --create-init-deploy-default-role --give-admin-access --contact-email [my email]

Download and deploy a test distribution

Create a test website and deploy it.

echo "Creating a directory for the project"
mkdir simple-website
cd simple-website

echo "Creating an example project"
attini init-project simple-website

cd ..

echo "Register test environment"
attini environment create test

echo "Package and deploy you attini project"
attini deploy run simple-website

Get the website URL:

aws cloudformation describe-stacks --stack-name test-website --query 'Stacks[0].Outputs[?OutputKey==`CloudFrontDistributionDomainName`].OutputValue' --output text

Visit the URL in your web browser.

Clean up

Clean using the AWS CLI.

BUCKET_NAME=$(aws cloudformation describe-stacks --stack-name test-website --query 'Stacks[0].Outputs[?OutputKey==`WebassetsBucket`].OutputValue' --output text)
aws s3 rm "s3://$BUCKET_NAME" --recursive
aws cloudformation delete-stack --stack-name test-website
aws cloudformation delete-stack --stack-name test-backend
aws cloudformation delete-stack --stack-name test-website-init-deploy
cd ..
rm -rf attini-quick-start/

To remove the Attini Framework please see Deleting/Clean up the Attini Framework.