Open Ram81 opened 3 years ago
@Ram81 May I take this one?
@Ram81 Would it make sense to store eks_role_name
, nodegroup_name
(and some other values) in the ChallengeEvaluationCluster
Model as well, as in order to delete those we need to refer back to those values.
Currently we can parse them while deleting just as we were doing while creating
...
nodegroup_name = "{0}-nodegroup".format(challenge_obj.title.replace(" ", "-"))
...
however this may create an issue, if these values were to change in the future.
@Ram81 May I take this one?
@ShauryaAg sure, go ahead.
@Ram81 Would it make sense to store eks_role_name, nodegroup_name (and some other values) in the ChallengeEvaluationCluster Model as well, as in order to delete those we need to refer back to those values.
Yes, we can add those to the model.
however this may create an issue, if these values were to change in the future.
These values won't be changed by anyone. These will be populated by automated task and set to null when we trigger the delete task.
@Ram81 I have made the necessary changes for
ChallengeEvaluationCluster
modelBut I still need an AWS API key for testing purposes. Is there any way I can get one?
@ShauryaAg you can open the PR and I can pull and test it with AWS resources. If you want to test you can try signing up for free tier AWS account for testing VPC, subnet and IAM creation and deletion. I don't think you'll get access to sping up EKS clusters but that should be fine I think.
@Ram81 I have created a draft PR for the same. Please test it with the AWS API keys.
Description
We have an automated set up to create a code upload worker cluster in host's AWS account which creates all the required services for code upload challenge submission evaluation. We want to add automated support to stop/delete the code upload worker infrastructure. This requires -
Metadata of mentioned service is stored in
ChallengeEvaluationCluster
model, you can find the code here. Codebase for starting these services is available here.The approach for this feature is to:
ChallengeEvaluationCluster
model