Skip to content

Commit

Permalink
Adding a sample soc2 config and fixing a long line
Browse files Browse the repository at this point in the history
  • Loading branch information
fozziethebeat committed Jul 8, 2024
1 parent 47f8daf commit b090dbd
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
25 changes: 25 additions & 0 deletions examples/aws_soc2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# A minimal soc2 example.
#
# Runs a task that simply lists the default conda environments.
#
# Usage:
# sky launch -c min-soc2 aws_soc2.yaml
# sky down min

name: minimal

resources:
cloud: aws
# Disk volumes typically need to be encrypted for SOC2 compliance.
disk_encrypted: true
# Various SOC2 compliance tools check prod versus non-prod status.
# Use labels (which become tags) for this.
labels:
"env": "prod"

setup: |
echo "running setup"
run: |
conda env list
3 changes: 2 additions & 1 deletion sky/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -1388,7 +1388,8 @@ def _from_yaml_config_single(cls, config: Dict[str, str]) -> 'Resources':
if resources_fields['disk_size'] is not None:
resources_fields['disk_size'] = int(resources_fields['disk_size'])
if resources_fields['disk_encrypted'] is not None:
resources_fields['disk_encrypted'] = resources_fields['disk_encrypted']
resources_fields['disk_encrypted'] = (
resources_fields['disk_encrypted'])

assert not config, f'Invalid resource args: {config.keys()}'
return Resources(**resources_fields)
Expand Down

0 comments on commit b090dbd

Please sign in to comment.