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 only available for MacOs and Linux.

Note

This guide will only do an isolated installation of the Attini CLI, and the Attini framework will get the default configuration. To to a proper installation, please see installing the CLI and Attini setup.

The following script will:

  1. Create a working directory.

  2. Install the Attini CLI.

  3. Use the Attini CLI to on-board the Attini framework.

  4. (Optional) Download one example project and deploy it.

Installing the Attini CLI and on-board the Attini framework

  1. Creating working directory:

mkdir -p attini-quick-start
cd attini-quick-start
  1. Installing the Attini CLI:

curl -L#o ./attini "https://docs.attini.io/api/v1/cli/get-cli/$(uname -m)/$(uname -s)/latest"; chmod +x ./attini
./attini --version
  1. Onboard Attini framework:

./attini setup

Download and deploy a test distribution

Clone our test website distribution and deploy it.

# Download and run an example attini distributions
git clone https://github.com/attini-cloud-solutions/example-website.git

./attini deploy run --environment test example-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

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.