NOTE
These instructions assume that your working directory is examples/deadline/SIC-deployment/python/
relative to the root of the AWS-RFDK package.
-
This sample app on the
mainline
branch may contain features that have not yet been officially released, and may not be available in theaws-rfdk
package installed through pip from PyPI. To work from an example of the latest release, please switch to therelease
branch. If you would like to try out unreleased features, you can stay onmainline
and follow the instructions for building, packing, and installing theaws-rfdk
from your local repository. -
Install the dependencies of the sample app:
pip install -r requirements.txt
-
Change the values in variable in
package/config.py
according to the customers need. -
Stage the Docker recipes for
RenderQueue
:# Set this value to the version of RFDK your application targets RFDK_VERSION=<version_of_RFDK> # Set this value to the version of AWS Thinkbox Deadline you'd like to deploy to your farm. Deadline 10.1.12 and up are supported. RFDK_DEADLINE_VERSION=<version_of_deadline> npx --package=aws-rfdk@${RFDK_VERSION} stage-deadline --output stage ${RFDK_DEADLINE_VERSION}
-
Deploy all the stacks:
cdk deploy "*"
-
Once you are finished with the sample app, you can tear it down by running:
Note: Any resources created by the Spot Event Plugin will not be deleted with
cdk destroy
. Make sure that all such resources (e.g. Spot Fleet Request or Fleet Instances) are cleaned up, before destroying the stacks. Disable the Spot Event Plugin by setting 'state' property to 'SpotEventPluginState.DISABLED' or via Deadline Monitor, ensure you shutdown all Pulse instances and then terminate any Spot Fleet Requests in the AWS EC2 Instance Console.cdk destroy "*"