To rollout the solution first download all files or clone GitHub repository (https://github.com/Grawikos/CloudAutomation.git). The lab environment is expected, otherwise, a LabRole with LabInstanceProfile has to be created. AWS CLI has to be installed and set up with default region and credentials. In the folder with all files execute
create.ps1 [-userid “”, -bucketname “”] deploy.sh [-userid “”, -bucketname “”]
- optional, default: found by command – optional, name used to create a bucket. It will be concatenated with userid to decrease chance of name collision, default: “athena-data-bucket”
After all stacks are created, the link to the website will be outputed to the terminal. It may take a minute to initiate servers.
To deploy static website on the S3 Bucket go to folder with bucketscript.ps1 and website.json and execute
bucketscript.ps1 [-userid “”, -bucketname “”, region “”] bucketscript.sh [-userid “”, -bucketname “” , region “”]
- region of the user, default: us-east-1
The link to the website will be outputed to the terminal
To connect to the ElasticStack and see logs of the application as admin, execute
connect_admins.ps1 [-port “”] connect_admins.sh [-port “”]
- any open port on the host, default: 8080.
The link to the website will be outputed to the terminal