_[We think we can automate the process of configuring HTCondor and its image down to just installed a special "EC2" RPM but the last attempt had a bug.]_ Add the following lines to the HTCondor configuration: -{file: /scratch/local/condor84/condor_config.local} -ANNEX_DEFAULT_ACCESS_KEY_FILE = <path-to-access-key-file> -ANNEX_DEFAULT_SECRET_KEY_FILE = <path-to-secret-key-file> -ANNEX_DEFAULT_SPOT_FLEET_CONFIG_FILE = <path-to-default-config-file> - -ANNEX_DEFAULT_LEASE_ARN = <LeaseFunctionARN> -ANNEX_DEFAULT_IAM_FLEET_ROLE_ARN = <IamFleetRoleARN> -ANNEX_DEFAULT_SECURITY_GROUP_ID = <SecurityGroupID> -ANNEX_DEFAULT_INSTANCE_ROLE_ARN = <InstanceRoleARN> + +---- + +{file: LOCALDIR/condor_config.local} +# These following lines are common to all accounts, and are included +# here in case you want to try using a different region. You'll also +# have to change the default AMI, or specify a different on when +# invoking condor_annex. +# +# FIXME: Add these to the param table defaults? +ANNEX_DEFAULT_EC2_URL = https://ec2.us-east-1.amazonaws.com +ANNEX_DEFAULT_CWE_URL = https://events.us-east-1.amazonaws.com +ANNEX_DEFAULT_LAMBDA_URL = https://lambda.us-east-1.amazonaws.com +ANNEX_DEFAULT_S3_URL = https://s3.amazonaws.com + +# All subsequent lines are specific to your particular account. +ANNEX_DEFAULT_ACCESS_KEY_FILE = +ANNEX_DEFAULT_SECRET_KEY_FILE = + +# The following lines configure the image and type of on-demand instance +# that condor_annex will use if you don't specify otherwise. Note that +# the default image ID set here is for us-east-1, so if you've changed +# the region-specific URLs above, you'll need to change the ID here, too. +ANNEX_DEFAULT_ODI_INSTANCE_TYPE = m4.large +ANNEX_DEFAULT_ODI_IMAGE_ID = ami-aacfc2bd + +# The instance profile must "point" to the S3_CONFIG_PATH. +ANNEX_DEFAULT_ODI_INSTANCE_PROFILE_ARN = +ANNEX_DEFAULT_ODI_S3_CONFIG_PATH = +ANNEX_DEFAULT_ODI_LEASE_FUNCTION_ARN = +ANNEX_DEFAULT_ODI_KEY_NAME = +ANNEX_DEFAULT_ODI_SECURITY_GROUP_IDS = {endfile} -_[This file is a lie. However, it shouldn't be hard to implement. It's just not wise, as written, in the long term.]_