Skip to content

Instantly share code, notes, and snippets.

@cappetta
Created August 22, 2020 03:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cappetta/69b7cffd6335e710688244776dcd1c8a to your computer and use it in GitHub Desktop.
Save cappetta/69b7cffd6335e710688244776dcd1c8a to your computer and use it in GitHub Desktop.
CyberRange LifeCycle Test Using Command Center
Test the Cyber Range LifeCycle using the CommandCenter docker container.
1. start the AWS Cyber Range CommandCenter docker container. Export your keys then run the container.
export aws_access_key_id=example_access_key_id
export aws_secret_access_key=example_secret_key
docker run -it -e AWS_ACCESS_KEY_ID=$aws_access_key_id -e AWS_SECRET_ACCESS_KEY=$aws_secret_access_key awscyberrange/commandcenter:latest /bin/bash
2. update the variables.tf and add your external IP address the ip is located in https://github.com/secdevops-cuse/CyberRange/tree/master/terraform/modules/infrastructure/secdevops/variables.tf#L1 (edited)
3. Perform the following steps
AWS_PROFILE=whatever ENV=YourTest REGION=us-east-1 make init
AWS_PROFILE=deprecaited ENV=test REGION=us-east-1 make network
AWS_PROFILE=deprecaited ENV=test REGION=us-east-1 make lab
AWS_PROFILE=deprecaited ENV=test REGION=us-east-1 make checkLab
AWS_PROFILE=deprecaited ENV=test REGION=us-east-1 make destroy-force
@APT-410
Copy link

APT-410 commented Aug 24, 2020

Awesome stuff thank you Tom!
Just small notes from starting in Docker on the Windows environment, and to speed up some troubleshooting I did.
Test the Cyber Range LifeCycle using the CommandCenter docker container.

  1. start the AWS Cyber Range CommandCenter docker container.
    Open CMD, type the following and replace the text after the equals sign to your values
    .
    setx aws_access_key_id=example_access_key_id
    setx aws_secret_access_key=example_secret_key

docker run -it -e AWS_ACCESS_KEY_ID=%aws_access_key_id% -e AWS_SECRET_ACCESS_KEY=%aws_secret_access_key% awscyberrange/commandcenter:latest /bin/bash

  1. update the variables.tf and add your external IP address the ip is located in https://github.com/secdevops-cuse/CyberRange/tree/master/terraform/modules/infrastructure/secdevops/variables.tf#L1 (edited)

  2. Perform the following steps, under /opt/AWSCyberRange

AWS_PROFILE=whatever ENV=YourTest REGION=us-east-1 make init
AWS_PROFILE=deprecaited ENV=test REGION=us-east-1 make network
AWS_PROFILE=deprecaited ENV=test REGION=us-east-1 make lab
AWS_PROFILE=deprecaited ENV=test REGION=us-east-1 make checkLab
AWS_PROFILE=deprecaited ENV=test REGION=us-east-1 make destroy-force

@cappetta
Copy link
Author

Thanks for Sharing your notes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment